Class: Gliss::App
- Inherits:
-
Object
- Object
- Gliss::App
- Defined in:
- lib/gliss.rb
Constant Summary collapse
- OUTPUT_KINDS =
%w{html latex}
Instance Method Summary collapse
-
#initialize(args = nil) ⇒ App
constructor
A new instance of App.
- #main ⇒ Object
Constructor Details
#initialize(args = nil) ⇒ App
Returns a new instance of App.
142 143 144 |
# File 'lib/gliss.rb', line 142 def initialize(args=nil) @args = (args || ARGV.dup) end |
Instance Method Details
#main ⇒ Object
146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/gliss.rb', line 146 def main begin process_args @the_repo = Grit::Repo.new(@repo) output_glosses(@the_repo) rescue SystemExit=>ex exit!(ex.status) rescue Exception=>ex puts "fatal: #{ex.inspect}" end end |