Class: Billy::Commands::Command
- Inherits:
-
Object
- Object
- Billy::Commands::Command
show all
- Defined in:
- lib/billy/commands/command.rb
Class Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Class Attribute Details
._instance ⇒ Object
Returns the value of attribute _instance.
18
19
20
|
# File 'lib/billy/commands/command.rb', line 18
def _instance
@_instance
end
|
Class Method Details
.instance ⇒ Object
20
21
22
|
# File 'lib/billy/commands/command.rb', line 20
def instance
self._instance ||= self.new
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
|