Method: CEML::Driver#to_bytecode
- Defined in:
- lib/ceml/driver.rb
#to_bytecode(bytecode_or_script) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/ceml/driver.rb', line 30 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 |