Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/stratagem/extensions/object.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#methods_include?(name) ⇒ Boolean
2 3 4 5 6 7 8 |
# File 'lib/stratagem/extensions/object.rb', line 2 def methods_include?(name) if (methods.first.kind_of?(String)) methods.include?(name.to_s) else methods.include?(name.to_sym) end end |