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.
5 6 7 |
# File 'lib/blocks/renderers/block_placeholder.rb', line 5 def initialize(block_definition) self.block_definition = block_definition end |
Instance Attribute Details
#block_definition ⇒ Object
Returns the value of attribute block_definition.
3 4 5 |
# File 'lib/blocks/renderers/block_placeholder.rb', line 3 def block_definition @block_definition end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/blocks/renderers/block_placeholder.rb', line 9 def to_s "PLACEHOLDER_FOR_#{block_definition.name} " end |