Module: Timeless::CommandSyntax

Defined in:
lib/timeless/cli/command_syntax.rb

Constant Summary collapse

APP_NAME =
"timeless"

Class Method Summary collapse

Class Method Details

.commandsObject

return a hash with all the commands and their options



8
9
10
11
12
13
14
15
16
# File 'lib/timeless/cli/command_syntax.rb', line 8

def self.commands
  h = Hash.new
  self.methods.each do |method|
    if method.to_s.include?("_opts") then
      h = h.merge(eval(method.to_s))
    end
  end
  return h
end