Class: FilterParam::AST::Attribute
- Defined in:
- lib/filter_param/ast/attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Attribute
constructor
A new instance of Attribute.
Methods inherited from Node
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
#name ⇒ Object (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 |