class Rubinius::InstructionSequence
Attributes
opcodes[R]
Public Class Methods
new(size)
click to toggle source
# File lib/rubinius/bridge/iseq.rb, line 4 def initialize(size) if size.kind_of? Tuple @opcodes = size else @opcodes = Tuple.new(size) end end
Public Instance Methods
==(other)
click to toggle source
# File lib/rubinius/bridge/iseq.rb, line 14 def ==(other) other.kind_of?(InstructionSequence) and @opcodes == other.opcodes end
[](idx)
click to toggle source
# File lib/rubinius/bridge/iseq.rb, line 22 def [](idx) @opcodes[idx] end
[]=(idx, val)
click to toggle source
# File lib/rubinius/bridge/iseq.rb, line 18 def []=(idx, val) @opcodes[idx] = val end
size()
click to toggle source
# File lib/rubinius/bridge/iseq.rb, line 26 def size @opcodes.size end