Class: Lanes::Screen::DefinitionList
- Inherits:
-
Object
- Object
- Lanes::Screen::DefinitionList
- Defined in:
- lib/lanes/screen.rb
Instance Method Summary collapse
- #define(id) {|definition| ... } ⇒ Object
-
#initialize(ext) ⇒ DefinitionList
constructor
A new instance of DefinitionList.
Constructor Details
#initialize(ext) ⇒ DefinitionList
Returns a new instance of DefinitionList.
14 15 16 |
# File 'lib/lanes/screen.rb', line 14 def initialize(ext) @ext = ext end |
Instance Method Details
#define(id) {|definition| ... } ⇒ Object
18 19 20 21 22 |
# File 'lib/lanes/screen.rb', line 18 def define(id) definition = DEFINITIONS[id] definition.extension = @ext yield definition end |