Class: Oryx::Runner
- Inherits:
-
Object
- Object
- Oryx::Runner
- Defined in:
- lib/oryx/runner.rb
Instance Attribute Summary collapse
-
#input_filename ⇒ Object
readonly
Returns the value of attribute input_filename.
-
#output_filename ⇒ Object
readonly
Returns the value of attribute output_filename.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#input_filename ⇒ Object (readonly)
Returns the value of attribute input_filename.
6 7 8 |
# File 'lib/oryx/runner.rb', line 6 def input_filename @input_filename end |
#output_filename ⇒ Object (readonly)
Returns the value of attribute output_filename.
6 7 8 |
# File 'lib/oryx/runner.rb', line 6 def output_filename @output_filename end |
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/oryx/runner.rb', line 14 def run puts "input: #{input_filename}" puts "output: #{output_filename}" print "lexing".blue+"."*17 l = Lexer.new output_filename.open('w:UTF-8') { |f| f.write(tabularize_output l.lex_file(input_filename.to_s)) } puts "complete".green end |