Class: MPD::Controller::Commands::Command
- Inherits:
-
Object
- Object
- MPD::Controller::Commands::Command
- Defined in:
- lib/mpd/controller/commands.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, usable = true) ⇒ Command
constructor
A new instance of Command.
- #usable? ⇒ Boolean
Constructor Details
#initialize(name, usable = true) ⇒ Command
Returns a new instance of Command.
17 18 19 20 |
# File 'lib/mpd/controller/commands.rb', line 17 def initialize (name, usable = true) @name = name @usable = usable end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/mpd/controller/commands.rb', line 15 def name @name end |
Instance Method Details
#usable? ⇒ Boolean
22 23 24 |
# File 'lib/mpd/controller/commands.rb', line 22 def usable? @usable end |