Class: Ragweed::Rasm::Immed
Overview
An immediate value. Basically just a Fixnum with a type wrapper.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(i) ⇒ Immed
constructor
A new instance of Immed.
- #method_missing(meth, *args) ⇒ Object
Constructor Details
#initialize(i) ⇒ Immed
Returns a new instance of Immed.
215 |
# File 'lib/ragweed/rasm/isa.rb', line 215 def initialize(i); @val = i; end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
216 |
# File 'lib/ragweed/rasm/isa.rb', line 216 def method_missing(meth, *args); @val.send meth, *args; end |
Instance Attribute Details
#val ⇒ Object (readonly)
Returns the value of attribute val.
214 215 216 |
# File 'lib/ragweed/rasm/isa.rb', line 214 def val @val end |