Module: Kernel
- Defined in:
- lib/hobosupport/module.rb,
lib/hobosupport/methodphitamine.rb
Overview
Instance Method Summary collapse
- #classy_module(&b) ⇒ Object
- #it ⇒ Object (also: #its)
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. :included do |base| base.class_eval &b end end |
#it ⇒ Object Also known as: its
5 |
# File 'lib/hobosupport/methodphitamine.rb', line 5 def it() It.new end |