Class: HamdownCore::Ast::HamlComment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasChildren

#<<, #initialize

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



129
130
131
# File 'lib/hamdown_core/ast.rb', line 129

def children
  @children
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



129
130
131
# File 'lib/hamdown_core/ast.rb', line 129

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



129
130
131
# File 'lib/hamdown_core/ast.rb', line 129

def lineno
  @lineno
end

Instance Method Details

#to_hObject



132
133
134
# File 'lib/hamdown_core/ast.rb', line 132

def to_h
  super.merge(type: 'haml_comment')
end