Class: Interscript::DSL::Items::Stages
- Inherits:
-
Object
- Object
- Interscript::DSL::Items::Stages
- Defined in:
- lib/interscript/dsl/items.rb
Overview
Implementation of ‘map.x.stage.stagename` and `stage.stagename`
Instance Method Summary collapse
- #[](stage) ⇒ Object (also: #method_missing)
-
#initialize(map = nil) ⇒ Stages
constructor
A new instance of Stages.
Constructor Details
#initialize(map = nil) ⇒ Stages
Returns a new instance of Stages.
82 |
# File 'lib/interscript/dsl/items.rb', line 82 def initialize map=nil; @map = map; end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
87 88 89 |
# File 'lib/interscript/dsl/items.rb', line 87 def [] stage Interscript::Node::Item::Stage.new(stage, map: @map) end |
Instance Method Details
#[](stage) ⇒ Object Also known as: method_missing
84 85 86 |
# File 'lib/interscript/dsl/items.rb', line 84 def [] stage Interscript::Node::Item::Stage.new(stage, map: @map) end |