Class: Wilson::Immediate
Overview
Immediate is an Integer wrapper so that we know the machine we’re dealing with when we apply commands
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Operand
Instance Method Summary collapse
Methods inherited from Operand
#initialize, #instructionFromMessage, #method_missing, on, #operand?
Constructor Details
This class inherits a constructor from Wilson::Operand
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wilson::Operand
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
833 834 835 |
# File 'lib/wilson.rb', line 833 def value @value end |
Instance Method Details
#immediate? ⇒ Boolean
835 836 837 |
# File 'lib/wilson.rb', line 835 def immediate? true end |