Class: RbPIC::RSMConstant
- Inherits:
-
Object
- Object
- RbPIC::RSMConstant
- Defined in:
- lib/rbpic/gen.rb
Instance Method Summary collapse
-
#initialize(code) ⇒ RSMConstant
constructor
A new instance of RSMConstant.
- #method_missing(sym, *args) ⇒ Object
Constructor Details
#initialize(code) ⇒ RSMConstant
Returns a new instance of RSMConstant.
11 12 13 14 |
# File 'lib/rbpic/gen.rb', line 11 def initialize(code) @code = code @code << "\tcblock 0x08" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
17 18 19 |
# File 'lib/rbpic/gen.rb', line 17 def method_missing(sym, *args) @code << "\t\t#{sym.to_s}" end |