Class: Ruby::RescueParams

Inherits:
Params show all
Defined in:
lib/ruby/params.rb

Instance Attribute Summary

Attributes included from Node::Composite

#parent

Instance Method Summary collapse

Methods inherited from Params

#<<

Methods inherited from DelimitedList

#nodes

Methods inherited from List

#method_missing, #nodes

Methods included from Alternation::List

#<<, #[]=, #pop

Methods included from Conversions::List

#to_array

Methods inherited from Aggregate

#position, #position=, #prolog, #prolog=, #to_ruby

Methods inherited from Node

#<=>, #all_nodes, #column, #length, #nodes, #row

Methods included from Conversions

included, #to_node

Methods included from Node::Traversal

#has_token?, #has_type?, #has_value?, #is_instance_of?, #left_of?, #matches?, #position?, #right_of?, #select

Methods included from Node::Source

#context, #filename, #line, #lines, #src

Methods included from Node::Composite

included, #root, #root?

Constructor Details

#initialize(types, var, operator) ⇒ RescueParams

Returns a new instance of RescueParams.



35
36
37
38
39
# File 'lib/ruby/params.rb', line 35

def initialize(types, var, operator)
  types = Ruby::Array.new(types) if types
  errors = Ruby::Assoc.new(types, var, operator)
  super(errors)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ruby::List