class Gemat::Cli

Public Instance Methods

command(options, method_name) click to toggle source
# File lib/gemat/cli.rb, line 23
def command(options, method_name)
  klass = "Gemat::#{method_name.capitalize}Formatter"
  Gemat.run(options) do |gems, columns|
    Object.const_get(klass).new(gems, columns, write_path: options[:output]).run
  end
end
csv() click to toggle source
# File lib/gemat/cli.rb, line 8
def csv
  command(options, __method__)
end
md() click to toggle source
# File lib/gemat/cli.rb, line 13
def md
  command(options, __method__)
end
org() click to toggle source
# File lib/gemat/cli.rb, line 18
def org
  command(options, __method__)
end