Class: Billy::Commands::Command
- Inherits:
-
Object
- Object
- Billy::Commands::Command
- Defined in:
- lib/billy/commands/command.rb
Class Attribute Summary collapse
-
._instance ⇒ Object
Returns the value of attribute _instance.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
._instance ⇒ Object
Returns the value of attribute _instance.
22 23 24 |
# File 'lib/billy/commands/command.rb', line 22 def _instance @_instance end |
Class Method Details
.instance ⇒ Object
24 25 26 |
# File 'lib/billy/commands/command.rb', line 24 def instance self._instance ||= self.new end |
.register_self! ⇒ Object
28 29 30 |
# File 'lib/billy/commands/command.rb', line 28 def register_self! Billy::Commands.register_command!( instance ) end |
Instance Method Details
#name ⇒ Object
7 8 9 |
# File 'lib/billy/commands/command.rb', line 7 def name self.class.to_s.split( "::" ).last.downcase end |