Class: Lanes::Screen::DefinitionList

Inherits:
Object
  • Object
show all
Defined in:
lib/lanes/screen.rb

Instance Method Summary collapse

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

Yields:

  • (definition)


18
19
20
21
22
# File 'lib/lanes/screen.rb', line 18

def define(id)
    definition = DEFINITIONS[id]
    definition.extension = @ext
    yield definition
end