Class: MM::Command::Favorites

Inherits:
AbstractCommand show all
Defined in:
lib/mm/cmds/favorites.rb

Instance Method Summary collapse

Methods inherited from AbstractCommand

#cache_options, #card_property?, #display_value, #doc, #options, #output, #parse, #run, #user_property?

Instance Method Details

#do_onceObject



24
25
26
# File 'lib/mm/cmds/favorites.rb', line 24

def do_once
  favorites
end

#view(favorites) ⇒ Object



20
21
22
# File 'lib/mm/cmds/favorites.rb', line 20

def view(favorites)
  output "All favorites: \n#{favorites.collect{|f| "  * #{f.name}"}.join("\n")}"
end