Class: Nodewrap::ByteDecoder::Expression::Variable

Inherits:
Nodewrap::ByteDecoder::Expression show all
Defined in:
lib/bytedecoder.rb

Instance Attribute Summary

Attributes inherited from Nodewrap::ByteDecoder::Expression

#pc

Instance Method Summary collapse

Methods inherited from Nodewrap::ByteDecoder::Expression

#<=>, #fmt

Constructor Details

#initialize(pc, name) ⇒ Variable

Returns a new instance of Variable.



307
308
309
310
# File 'lib/bytedecoder.rb', line 307

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

Instance Method Details

#precedenceObject



316
317
318
# File 'lib/bytedecoder.rb', line 316

def precedence
  return 1
end

#to_sObject



312
313
314
# File 'lib/bytedecoder.rb', line 312

def to_s
  return @name.to_s
end