Parent

Methods

FFI::Generator::Application

Public Class Methods

run() click to toggle source
# File lib/generator/application.rb, line 21
def run      
  process_args
  if ARGV.size == 2
    File.open(ARGV[1], 'w') do |file|
      file << FFI::Generator::Parser.new.generate(Nokogiri::XML(File.open(ARGV[0])))
    end
  else
    help
    raise "Invalid number of arguments!"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.