Class: Poetics::CodeLoader
- Inherits:
-
Object
- Object
- Poetics::CodeLoader
- Defined in:
- lib/poetics/library/code_loader.rb
Class Method Summary collapse
Class Method Details
.evaluate(string) ⇒ Object
3 4 5 6 |
# File 'lib/poetics/library/code_loader.rb', line 3 def self.evaluate(string) # We're just parsing for now Poetics::Parser.parse_to_sexp string end |
.execute_file(name) ⇒ Object
8 9 10 11 |
# File 'lib/poetics/library/code_loader.rb', line 8 def self.execute_file(name) value = Poetics::Parser.parse_to_sexp IO.read(name) p value end |