Class: Faml::Ast::Script

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasChildren

#<<

Constructor Details

#initialize ⇒ Script

Returns a new instance of Script.



54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/faml/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

#children ⇒ Object

Returns the value of attribute children

Returns:

  • (Object) —

    the current value of children



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

def children
  @children
end

#escape_html ⇒ Object

Returns the value of attribute escape_html

Returns:

  • (Object) —

    the current value of escape_html



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

def escape_html
  @escape_html
end

#mid_block_keyword ⇒ Object

Returns the value of attribute mid_block_keyword

Returns:

  • (Object) —

    the current value of mid_block_keyword



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

def mid_block_keyword
  @mid_block_keyword
end

#preserve ⇒ Object

Returns the value of attribute preserve

Returns:

  • (Object) —

    the current value of preserve



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

def preserve
  @preserve
end

#script ⇒ Object

Returns the value of attribute script

Returns:

  • (Object) —

    the current value of script



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

def script
  @script
end