Class: Rubinius::AST::RescueSplat

Inherits:
Node
  • Object
show all
Defined in:
lib/compiler/ast/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk

Constructor Details

#initialize(line, value) ⇒ RescueSplat

Returns a new instance of RescueSplat.



128
129
130
131
# File 'lib/compiler/ast/exceptions.rb', line 128

def initialize(line, value)
  @line = line
  @value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



126
127
128
# File 'lib/compiler/ast/exceptions.rb', line 126

def value
  @value
end

Instance Method Details

#to_sexpObject



133
134
135
# File 'lib/compiler/ast/exceptions.rb', line 133

def to_sexp
  [:splat, @value.to_sexp]
end