Module: Kernel

Defined in:
lib/lev/utilities.rb

Instance Method Summary collapse

Instance Method Details

#eigenclassObject



17
18
19
20
21
# File 'lib/lev/utilities.rb', line 17

def eigenclass
  class << self
    self
  end
end

#includes_module?(mod) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/lev/utilities.rb', line 23

def includes_module?(mod)
  eigenclass.included_modules.include?(mod)
end