module TrelloDXY::CLI::Commands::Shared

Public Instance Methods

actions(obj = self) click to toggle source
# File lib/trello_dxy/cli/commands/shared.rb, line 5
def actions(obj = self)
  (obj.methods - obj.class.superclass.instance_methods).sort - shared_methods
end
help() click to toggle source
# File lib/trello_dxy/cli/commands/shared.rb, line 17
def help
  puts "Valid commands for #{target_name}: #{actions.join(', ')}"
  puts "For further help, append -h to sub command."
end
shared_methods() click to toggle source
# File lib/trello_dxy/cli/commands/shared.rb, line 9
def shared_methods
  TrelloDXY::CLI::Commands::Shared.instance_methods
end
target_name() click to toggle source
# File lib/trello_dxy/cli/commands/shared.rb, line 13
def target_name
  self.class.name.downcase.split('::').last
end