Class: Wilson::Immediate

Inherits:
Operand show all
Defined in:
lib/wilson.rb

Overview

Immediate is an Integer wrapper so that we know the machine we’re dealing with when we apply commands

Instance Attribute Summary collapse

Attributes inherited from Operand

#bits, #machine

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

#valueObject

Returns the value of attribute value.



833
834
835
# File 'lib/wilson.rb', line 833

def value
  @value
end

Instance Method Details

#immediate?Boolean

Returns:

  • (Boolean)


835
836
837
# File 'lib/wilson.rb', line 835

def immediate?
  true
end