Class: Nodewrap::ByteDecoder::Expression::ConstantAssignment

Inherits:
Constant show all
Defined in:
lib/bytedecoder.rb

Instance Attribute Summary

Attributes inherited from Nodewrap::ByteDecoder::Expression

#pc

Instance Method Summary collapse

Methods inherited from Constant

#precedence

Methods inherited from Nodewrap::ByteDecoder::Expression

#<=>, #fmt

Constructor Details

#initialize(pc, klass, name, value) ⇒ ConstantAssignment

Returns a new instance of ConstantAssignment.



346
347
348
349
# File 'lib/bytedecoder.rb', line 346

def initialize(pc, klass, name, value)
  super(pc, klass, name)
  @value = value
end

Instance Method Details

#to_sObject



351
352
353
354
355
# File 'lib/bytedecoder.rb', line 351

def to_s
  s = super()
  s << " = #{@value}"
  return s
end