Class: Hearken::Command::List

Inherits:
Object
  • Object
show all
Includes:
Hearken::Command
Defined in:
lib/hearken/command/list.rb

Instance Attribute Summary

Attributes included from Hearken::Command

#help, #usage

Instance Method Summary collapse

Methods included from Hearken::Command

included, #initialize, load

Instance Method Details

#show(time, track) ⇒ Object



25
26
27
28
# File 'lib/hearken/command/list.rb', line 25

def show time, track
  return unless @terms.empty? or @terms.all? {|term| track.search_string.include? term }
  puts time ? "#{time.to_s.foreground(:blue)}\n\t#{track}" : track
end