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

#initializeScript

Returns a new instance of Script.



58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/faml/ast.rb', line 58

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



47
48
49
# File 'lib/faml/ast.rb', line 47

def children
  @children
end

#escape_htmlObject

Returns the value of attribute escape_html

Returns:

  • (Object)

    the current value of escape_html



47
48
49
# File 'lib/faml/ast.rb', line 47

def escape_html
  @escape_html
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



47
48
49
# File 'lib/faml/ast.rb', line 47

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



47
48
49
# File 'lib/faml/ast.rb', line 47

def lineno
  @lineno
end

#mid_block_keywordObject

Returns the value of attribute mid_block_keyword

Returns:

  • (Object)

    the current value of mid_block_keyword



47
48
49
# File 'lib/faml/ast.rb', line 47

def mid_block_keyword
  @mid_block_keyword
end

#preserveObject

Returns the value of attribute preserve

Returns:

  • (Object)

    the current value of preserve



47
48
49
# File 'lib/faml/ast.rb', line 47

def preserve
  @preserve
end

#scriptObject

Returns the value of attribute script

Returns:

  • (Object)

    the current value of script



47
48
49
# File 'lib/faml/ast.rb', line 47

def script
  @script
end