Class: Faml::CLI
- Inherits:
-
Thor
- Object
- Thor
- Faml::CLI
- Defined in:
- lib/faml/cli.rb
Instance Method Summary collapse
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 |
#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 |