Class: Internal::ByteDecoder::Expression::Assignment
- Inherits:
-
Internal::ByteDecoder::Expression
- Object
- Internal::ByteDecoder::Expression
- Internal::ByteDecoder::Expression::Assignment
- Defined in:
- lib/decompiler/vm/bytedecoder.rb
Instance Attribute Summary collapse
-
#rhs ⇒ Object
readonly
Returns the value of attribute rhs.
Attributes inherited from Internal::ByteDecoder::Expression
Instance Method Summary collapse
-
#initialize(pc, name, rhs) ⇒ Assignment
constructor
A new instance of Assignment.
- #precedence ⇒ Object
- #to_s ⇒ Object
Methods inherited from Internal::ByteDecoder::Expression
Constructor Details
#initialize(pc, name, rhs) ⇒ Assignment
Returns a new instance of Assignment.
393 394 395 396 397 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 393 def initialize(pc, name, rhs) super(pc) @name = name @rhs = rhs end |
Instance Attribute Details
#rhs ⇒ Object (readonly)
Returns the value of attribute rhs.
391 392 393 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 391 def rhs @rhs end |
Instance Method Details
#precedence ⇒ Object
403 404 405 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 403 def precedence return 5 end |
#to_s ⇒ Object
399 400 401 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 399 def to_s return "#{@name} = #{@rhs}" end |