Class: HamlParser::Ast::Empty

Inherits:
Struct
  • Object
show all
Defined in:
lib/haml_parser/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



151
152
153
# File 'lib/haml_parser/ast.rb', line 151

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



151
152
153
# File 'lib/haml_parser/ast.rb', line 151

def lineno
  @lineno
end

Instance Method Details

#to_hObject



152
153
154
# File 'lib/haml_parser/ast.rb', line 152

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