Class: Sablon::Statement::Comment

Inherits:
Struct
  • Object
show all
Defined in:
lib/sablon/operations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



118
119
120
# File 'lib/sablon/operations.rb', line 118

def block
  @block
end

Instance Method Details

#evaluate(_env) ⇒ Object



119
120
121
# File 'lib/sablon/operations.rb', line 119

def evaluate(_env)
  block.replace []
end