Class: FastHaml::Ast::SilentScript

Inherits:
Struct
  • Object
show all
Includes:
HasChildren
Defined in:
lib/fast_haml/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasChildren

#<<

Constructor Details

#initializeSilentScript

Returns a new instance of SilentScript.



71
72
73
74
75
76
# File 'lib/fast_haml/ast.rb', line 71

def initialize(*)
  super
  if self.mid_block_keyword.nil?
    self.mid_block_keyword = false
  end
end

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



68
69
70
# File 'lib/fast_haml/ast.rb', line 68

def children
  @children
end

#mid_block_keywordObject

Returns the value of attribute mid_block_keyword

Returns:

  • (Object)

    the current value of mid_block_keyword



68
69
70
# File 'lib/fast_haml/ast.rb', line 68

def mid_block_keyword
  @mid_block_keyword
end

#scriptObject

Returns the value of attribute script

Returns:

  • (Object)

    the current value of script



68
69
70
# File 'lib/fast_haml/ast.rb', line 68

def script
  @script
end