Class: Faml::Ast::HtmlComment

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

#initializeHtmlComment

Returns a new instance of HtmlComment.



86
87
88
89
90
# File 'lib/faml/ast.rb', line 86

def initialize(*)
  super
  self.comment ||= ''
  self.conditional ||= ''
end

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



83
84
85
# File 'lib/faml/ast.rb', line 83

def children
  @children
end

#commentObject

Returns the value of attribute comment

Returns:

  • (Object)

    the current value of comment



83
84
85
# File 'lib/faml/ast.rb', line 83

def comment
  @comment
end

#conditionalObject

Returns the value of attribute conditional

Returns:

  • (Object)

    the current value of conditional



83
84
85
# File 'lib/faml/ast.rb', line 83

def conditional
  @conditional
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



83
84
85
# File 'lib/faml/ast.rb', line 83

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



83
84
85
# File 'lib/faml/ast.rb', line 83

def lineno
  @lineno
end