Class: FastHaml::Ast::HtmlComment

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

#initializeHtmlComment

Returns a new instance of HtmlComment.



82
83
84
85
86
# File 'lib/fast_haml/ast.rb', line 82

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



79
80
81
# File 'lib/fast_haml/ast.rb', line 79

def children
  @children
end

#commentObject

Returns the value of attribute comment

Returns:

  • (Object)

    the current value of comment



79
80
81
# File 'lib/fast_haml/ast.rb', line 79

def comment
  @comment
end

#conditionalObject

Returns the value of attribute conditional

Returns:

  • (Object)

    the current value of conditional



79
80
81
# File 'lib/fast_haml/ast.rb', line 79

def conditional
  @conditional
end