Class: Cards::CardWall::DefinitionContext
- Defined in:
- lib/cards/card_wall.rb
Instance Method Summary collapse
- #column(name, *options) ⇒ Object
-
#initialize(wraps) ⇒ DefinitionContext
constructor
A new instance of DefinitionContext.
- #lanes(name, options) ⇒ Object
- #row(name, *options) ⇒ Object
Constructor Details
#initialize(wraps) ⇒ DefinitionContext
Returns a new instance of DefinitionContext.
71 72 73 74 |
# File 'lib/cards/card_wall.rb', line 71 def initialize(wraps) @this = wraps @i = 0 end |
Instance Method Details
#column(name, *options) ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/cards/card_wall.rb', line 82 def column(name, *) @this.add_handler(name, Layouts::ColumnLayout.new(*)) do |name, row| c = Card.new(name) yield c, row if block_given? c end end |
#lanes(name, options) ⇒ Object
90 91 |
# File 'lib/cards/card_wall.rb', line 90 def lanes(name, ) end |