Class: Rad::Conveyors
- Defined in:
- lib/rad/conveyors/_require.rb,
lib/rad/conveyors/_conveyors.rb
Defined Under Namespace
Classes: Conveyor, Params, Processor, Workspace
Instance Method Summary collapse
- #[](conveyor_name) ⇒ Object
-
#initialize ⇒ Conveyors
constructor
A new instance of Conveyors.
- #method_missing(m, &block) ⇒ Object
- #size ⇒ Object
Constructor Details
#initialize ⇒ Conveyors
Returns a new instance of Conveyors.
2 3 4 |
# File 'lib/rad/conveyors/_conveyors.rb', line 2 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/rad/conveyors/_conveyors.rb', line 12 def method_missing m, &block if block block.call self[m] else self[m] end end |