Module: Tins::SymbolMaker
- Defined in:
- lib/tins/dslkit.rb
Overview
This module can be included in another module/class. It generates a symbol for every missing method that was called in the context of this module/class.
Instance Method Summary collapse
-
#method_missing(id, *args) ⇒ Object
Returns a symbol (id) for every missing method named id.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(id, *args) ⇒ Object
Returns a symbol (id) for every missing method named id.
277 278 279 280 281 282 283 |
# File 'lib/tins/dslkit.rb', line 277 def method_missing(id, *args) if args.empty? id else super end end |