Module: Eco::API::Common::ClassMetaBasics
- Defined in:
- lib/eco/api/common/class_meta_basics.rb
Instance Method Summary collapse
-
#define(name, &block) ⇒ Object
Helps to define methods and keep track on them.
Instance Method Details
#define(name, &block) ⇒ Object
Helps to define methods and keep track on them
7 8 9 10 11 |
# File 'lib/eco/api/common/class_meta_basics.rb', line 7 def define(name, &block) name = name.to_sym @helpers[name] = block define_method(name.to_sym, &block) end |