123456789_123456789_123456789_123456789_123456789_

Class: TypeProf::ISeq::Insn

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/typeprof/iseq.rb,
lib/typeprof/iseq.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#insn (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 33

Insn = Struct.new(:insn, :operands, :lineno)

#lineno (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 33

Insn = Struct.new(:insn, :operands, :lineno)

#operands (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 33

Insn = Struct.new(:insn, :operands, :lineno)

Instance Method Details

#check?(insn_cmp, operands_cmp = nil) ⇒ Boolean

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 35

def check?(insn_cmp, operands_cmp = nil)
  return insn == insn_cmp && (!operands_cmp || operands == operands_cmp)
end