Class: FilterParam::AST::Scope
- Defined in:
- lib/filter_param/ast/scope.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, args) ⇒ Scope
constructor
A new instance of Scope.
Methods inherited from Node
Constructor Details
#initialize(name, args) ⇒ Scope
Returns a new instance of Scope.
6 7 8 9 |
# File 'lib/filter_param/ast/scope.rb', line 6 def initialize(name, args) @name = name.to_s @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/filter_param/ast/scope.rb', line 4 def args @args end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/filter_param/ast/scope.rb', line 4 def name @name end |