Class: Blocks::BlockPlaceholder
- Inherits:
-
Object
- Object
- Blocks::BlockPlaceholder
- Defined in:
- lib/blocks/renderers/block_placeholder.rb
Instance Attribute Summary collapse
-
#block_definition ⇒ Object
Returns the value of attribute block_definition.
Instance Method Summary collapse
-
#initialize(block_definition) ⇒ BlockPlaceholder
constructor
A new instance of BlockPlaceholder.
- #to_s ⇒ Object
Constructor Details
#initialize(block_definition) ⇒ BlockPlaceholder
Returns a new instance of BlockPlaceholder.
7 8 9 |
# File 'lib/blocks/renderers/block_placeholder.rb', line 7 def initialize(block_definition) self.block_definition = block_definition end |
Instance Attribute Details
#block_definition ⇒ Object
Returns the value of attribute block_definition.
5 6 7 |
# File 'lib/blocks/renderers/block_placeholder.rb', line 5 def block_definition @block_definition end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/blocks/renderers/block_placeholder.rb', line 11 def to_s "PLACEHOLDER_FOR_#{block_definition.name} " end |