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.



60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/fast_haml/ast.rb', line 60

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



51
52
53
# File 'lib/fast_haml/ast.rb', line 51

def children
  @children
end

#escape_htmlObject

Returns the value of attribute escape_html

Returns:

  • (Object)

    the current value of escape_html



51
52
53
# File 'lib/fast_haml/ast.rb', line 51

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



51
52
53
# File 'lib/fast_haml/ast.rb', line 51

def mid_block_keyword
  @mid_block_keyword
end

#preserveObject

Returns the value of attribute preserve

Returns:

  • (Object)

    the current value of preserve



51
52
53
# File 'lib/fast_haml/ast.rb', line 51

def preserve
  @preserve
end

#scriptObject

Returns the value of attribute script

Returns:

  • (Object)

    the current value of script



51
52
53
# File 'lib/fast_haml/ast.rb', line 51

def script
  @script
end