Class: Interscript::DSL::Items::Stages

Inherits:
Object
  • Object
show all
Defined in:
lib/interscript/dsl/items.rb

Overview

Implementation of ‘map.x.stage.stagename` and `stage.stagename`

Instance Method Summary collapse

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_missingObject



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