Class: Blocks::BlockPlaceholder

Inherits:
Object
  • Object
show all
Defined in:
lib/blocks/renderers/block_placeholder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_definitionObject

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_sObject



11
12
13
# File 'lib/blocks/renderers/block_placeholder.rb', line 11

def to_s
  "PLACEHOLDER_FOR_#{block_definition.name} "
end