Skip to content

Instantly share code, notes, and snippets.

@jrochkind
Created April 14, 2015 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrochkind/4864c69a33ba605e72da to your computer and use it in GitHub Desktop.
Save jrochkind/4864c69a33ba605e72da to your computer and use it in GitHub Desktop.
Class Something
attr_accessor :foo
end
something = Something.new
something.respond_to?(:foo) # => true
something.respond_to?(:foo=) # => true
something.respond_to?(:bar) # => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment