Class: CEML::Driver
- Inherits:
-
Object
- Object
- CEML::Driver
- Defined in:
- lib/ceml/driver.rb
Instance Method Summary collapse
Instance Method Details
#to_bytecode(bytecode_or_script) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/ceml/driver.rb', line 3 def to_bytecode bytecode_or_script case bytecode_or_script when String; return CEML.parse(:script, bytecode_or_script).bytecode when CEML::Script; return bytecode_or_script.bytecode when Array; return bytecode_or_script else return nil end end |