class Awry::Cli

Public Instance Methods

color(string) click to toggle source
# File lib/awry.rb, line 15
def color(string)
  set_color(string, self.class::COLORS.fetch(string.to_sym, :yellow))
end
tag_name(thing, default = nil) click to toggle source
# File lib/awry.rb, line 19
def tag_name(thing, default = nil)
  tn = thing.tags.find { |tag| tag.key == 'Name' }
  tn ? tn.value : default
end