Class: LcpRuby::Dsl::TileBuilder
- Inherits:
-
Object
- Object
- LcpRuby::Dsl::TileBuilder
- Defined in:
- lib/lcp_ruby/dsl/presenter_builder.rb
Overview
Tile-layout-specific configuration. Card zone keys live in the sibling ‘card { … }` block (CardBuilder).
Instance Method Summary collapse
- #columns(value) ⇒ Object
-
#initialize ⇒ TileBuilder
constructor
A new instance of TileBuilder.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ TileBuilder
Returns a new instance of TileBuilder.
594 595 596 |
# File 'lib/lcp_ruby/dsl/presenter_builder.rb', line 594 def initialize @hash = {} end |
Instance Method Details
#columns(value) ⇒ Object
598 599 600 |
# File 'lib/lcp_ruby/dsl/presenter_builder.rb', line 598 def columns(value) @hash["columns"] = value end |
#to_hash ⇒ Object
602 603 604 |
# File 'lib/lcp_ruby/dsl/presenter_builder.rb', line 602 def to_hash @hash.dup end |