Class: Crystal::Conveyors
Instance Method Summary collapse
- #[](conveyor_name) ⇒ Object
-
#initialize ⇒ Conveyors
constructor
A new instance of Conveyors.
- #method_missing(m, &block) ⇒ Object
Constructor Details
#initialize ⇒ Conveyors
Returns a new instance of Conveyors.
4 5 6 |
# File 'lib/crystal/conveyor/conveyors.rb', line 4 def initialize @hash = {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, &block) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/crystal/conveyor/conveyors.rb', line 12 def method_missing m, &block if block block.call self[m] else self[m] end end |