Class: FilterParam::AST::Scope

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

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

#argsObject (readonly)

Returns the value of attribute args.



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

def args
  @args
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end