Class: Faml::CLI
- Inherits:
-
Thor
- Object
- Thor
- Faml::CLI
- Defined in:
- lib/faml/cli.rb
Instance Method Summary collapse
- #compile(file) ⇒ Object
- #parse(file) ⇒ Object
- #render(file) ⇒ Object
- #temple(file) ⇒ Object
- #version ⇒ Object
Instance Method Details
#compile(file) ⇒ Object
17 18 19 |
# File 'lib/faml/cli.rb', line 17 def compile(file) puts compile_file(file, format: [:format].to_sym) end |
#parse(file) ⇒ Object
22 23 24 25 |
# File 'lib/faml/cli.rb', line 22 def parse(file) require 'pp' pp parse_file(file) end |
#render(file) ⇒ Object
10 11 12 13 |
# File 'lib/faml/cli.rb', line 10 def render(file) code = compile_file(file, format: [:format].to_sym) puts instance_eval(code, file) end |