Class: FilterParam::AST::Attribute

Inherits:
Node
  • Object
show all
Defined in:
lib/filter_param/ast/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

Constructor Details

#initialize(name) ⇒ Attribute

Returns a new instance of Attribute.



6
7
8
9
10
# File 'lib/filter_param/ast/attribute.rb', line 6

def initialize(name)
  super()

  @name = name
end

Instance Attribute Details

#nameObject (readonly) Also known as: to_s

Returns the value of attribute name.



4
5
6
# File 'lib/filter_param/ast/attribute.rb', line 4

def name
  @name
end