Module: S2_parse
- Defined in:
- lib/s2/s2_parse.rb,
ext/s2/s2_parse/s2_parse.cpp
Class Method Summary collapse
Class Method Details
.compile_to_ast(string) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/s2/s2_parse.rb', line 10 def S2_parse.compile_to_ast(string) if string.is_a? String s2_parse_compile_to_ast(string) else raise "Invalid type given. This method only accepts strings" end end |
.runtest(hello) ⇒ Object
6 7 8 |
# File 'lib/s2/s2_parse.rb', line 6 def S2_parse.runtest(hello) s2_parse_test(hello) end |