Class: FastHaml::Ast::Script

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

#initializeScript

Returns a new instance of Script.



54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/fast_haml/ast.rb', line 54

def initialize(*)
  super
  if self.escape_html.nil?
    self.escape_html = true
  end
  if self.preserve.nil?
    self.preserve = false
  end
  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



45
46
47
# File 'lib/fast_haml/ast.rb', line 45

def children
  @children
end

#escape_htmlObject

Returns the value of attribute escape_html

Returns:

  • (Object)

    the current value of escape_html



45
46
47
# File 'lib/fast_haml/ast.rb', line 45

def escape_html
  @escape_html
end

#mid_block_keywordObject

Returns the value of attribute mid_block_keyword

Returns:

  • (Object)

    the current value of mid_block_keyword



45
46
47
# File 'lib/fast_haml/ast.rb', line 45

def mid_block_keyword
  @mid_block_keyword
end

#preserveObject

Returns the value of attribute preserve

Returns:

  • (Object)

    the current value of preserve



45
46
47
# File 'lib/fast_haml/ast.rb', line 45

def preserve
  @preserve
end

#scriptObject

Returns the value of attribute script

Returns:

  • (Object)

    the current value of script



45
46
47
# File 'lib/fast_haml/ast.rb', line 45

def script
  @script
end