Module: Footing::Object
- Defined in:
- lib/extensions/object.rb
Instance Method Summary collapse
-
#eigen ⇒ Object
Returns the eigen class for the object.
-
#has_eigen? ⇒ Boolean
Indicates if the object has an eigen class.
Instance Method Details
#eigen ⇒ Object
Returns the eigen class for the object.
5 6 7 8 9 10 11 |
# File 'lib/extensions/object.rb', line 5 def eigen eigen = class << self self end rescue Exception => ex nil end |
#has_eigen? ⇒ Boolean
Indicates if the object has an eigen class.
14 15 16 |
# File 'lib/extensions/object.rb', line 14 def has_eigen? !eigen.nil? end |