Class: ToSource::Emitter::Assignment::Element::Push

Inherits:
ToSource::Emitter::Assignment::Element show all
Defined in:
lib/to_source/emitter/assignment/element.rb

Constant Summary

Constants inherited from ToSource::Emitter

REGISTRY

Instance Attribute Summary

Attributes inherited from ToSource::Emitter

#buffer, #node

Instance Method Summary collapse

Methods inherited from ToSource::Emitter

build, define_predicate, #initialize, run, #source

Constructor Details

This class inherits a constructor from ToSource::Emitter

Instance Method Details

#emit_indexundefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Emit index

Returns:

  • (undefined)


99
100
101
102
# File 'lib/to_source/emitter/assignment/element.rb', line 99

def emit_index
  # FIXME: Add reader
  visit(arguments.instance_variable_get(:@arguments))
end

#valueRubinius::AST::Node?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return value

Returns:

  • (Rubinius::AST::Node)

    if value is present

  • (nil)

    otherwise



114
115
116
117
# File 'lib/to_source/emitter/assignment/element.rb', line 114

def value
  # FIXME: Add reader
  arguments.instance_variable_get(:@value)
end