Class: Atomy::Code::Symbol
Instance Method Summary collapse
- #bytecode(gen, mod) ⇒ Object
-
#initialize(value) ⇒ Symbol
constructor
A new instance of Symbol.
Constructor Details
#initialize(value) ⇒ Symbol
Returns a new instance of Symbol.
4 5 6 |
# File 'lib/atomy/code/symbol.rb', line 4 def initialize(value) @value = value end |
Instance Method Details
#bytecode(gen, mod) ⇒ Object
8 9 10 |
# File 'lib/atomy/code/symbol.rb', line 8 def bytecode(gen, mod) gen.push_literal(@value) end |