Module: Mo2tex::CommonParts
- Included in:
- Mo2tex
- Defined in:
- lib/mo2tex/main.rb
Instance Method Summary collapse
Instance Method Details
#m2common(args, io = STDOUT, &block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/mo2tex/main.rb', line 9 def m2common(args, io = STDOUT, &block) raise ArgumentError, "Usage: #{File.basename($0)} <config file>" unless args.size > 0 school = School.new(args[0]) result = yield(school) io.puts(result) return result end |