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
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