Class: MPD::Controller::Commands::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/mpd/controller/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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

Returns:

  • (Boolean)


22
23
24
# File 'lib/mpd/controller/commands.rb', line 22

def usable?
	@usable
end