Class: Cutaneous::Compiler::BlockStart
- Inherits:
-
Object
- Object
- Cutaneous::Compiler::BlockStart
- Defined in:
- lib/cutaneous/compiler/expression.rb
Instance Method Summary collapse
- #affect(builder) ⇒ Object
-
#initialize(block_name) ⇒ BlockStart
constructor
A new instance of BlockStart.
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 |