Module: Footing::Object

Defined in:
lib/extensions/object.rb

Instance Method Summary collapse

Instance Method Details

#eigenObject

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.

Returns:

  • (Boolean)


14
15
16
# File 'lib/extensions/object.rb', line 14

def has_eigen?
  !eigen.nil?
end