class Billy::Commands::Command
Attributes
_instance[RW]
Public Class Methods
new()
click to toggle source
# File lib/billy/commands/command.rb, line 13 def initialize end
Protected Class Methods
instance()
click to toggle source
# File lib/billy/commands/command.rb, line 20 def instance self._instance ||= self.new end
register_self!()
click to toggle source
# File lib/billy/commands/command.rb, line 24 def register_self! Billy::Commands.register_command!( instance ) end
Public Instance Methods
name()
click to toggle source
# File lib/billy/commands/command.rb, line 7 def name self.class.to_s.split( "::" ).last.downcase end