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.



88
89
90
91
92
# File 'lib/fast_haml/ast.rb', line 88

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



85
86
87
# File 'lib/fast_haml/ast.rb', line 85

def children
  @children
end

#commentObject

Returns the value of attribute comment

Returns:

  • (Object)

    the current value of comment



85
86
87
# File 'lib/fast_haml/ast.rb', line 85

def comment
  @comment
end

#conditionalObject

Returns the value of attribute conditional

Returns:

  • (Object)

    the current value of conditional



85
86
87
# File 'lib/fast_haml/ast.rb', line 85

def conditional
  @conditional
end