Sha256: 9069c96004a536f100f0b8ee311d85af1fbc0049da2ac7784a3deefeba4912e7

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

module Footing
  module Object

    # Returns the eigen class for the object.
    def eigen
      class << self
        self
      end
    rescue Exception
      nil
    end

    # Indicates if the object has an eigen class.
    def has_eigen?
      !eigen.nil?
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
footing-0.1.8 lib/footing/extensions/object.rb