ruby - get plain class/instance method list

from blog blog, | ↗ original
ruby - get plain class/instance method list tl;dr: .methods - Object.methods Whenever I juggle with ruby classes or instances within a ruby REPL1, I had hard times to figure out their methods: > Time.methods => [:at, :now, :utc, :gm, :local, :mktime, :new, :allocate, :superclass, :, :=, :>=, :==, :===, :included_modules, ...