Module: Kernel

Defined in:
lib/hobosupport/module.rb,
lib/hobosupport/methodphitamine.rb

Overview

Instance Method Summary collapse

Instance Method Details

#classy_module(&b) ⇒ Object



60
61
62
63
64
65
# File 'lib/hobosupport/module.rb', line 60

def classy_module(&b)
  m = Module.new
  m.meta_def :included do |base|
    base.class_eval &b
  end
end

#itObject Also known as: its



5
# File 'lib/hobosupport/methodphitamine.rb', line 5

def it() It.new end