Class: Cutaneous::Compiler::BlockStart

Inherits:
Object
  • Object
show all
Defined in:
lib/cutaneous/compiler/expression.rb

Instance Method Summary collapse

Constructor Details

#initialize(block_name) ⇒ BlockStart

Returns a new instance of BlockStart.



64
65
66
# File 'lib/cutaneous/compiler/expression.rb', line 64

def initialize(block_name)
  @block_name = block_name.to_sym
end

Instance Method Details

#affect(builder) ⇒ Object



68
69
70
# File 'lib/cutaneous/compiler/expression.rb', line 68

def affect(builder)
  builder.block_start(@block_name)
end