I want to see what methods are unique to a class instance (class Pathname). I do:
Rails.root.class.methods(false)
And I get:
[:getwd, :pwd, :glob]
Then, I call one of the methods:
Rails.root.pwd
And I get:
NoMethodError (undefined method `pwd' for #<Pathname:/Users/borjagvo/workstation/npilookup>)
Why do I get this error? How can I see the public methods for instances of Pathname only?
Thanks!
Rails.root.class.instance_methods(false)do anything for you?