class ShinyColors::CLI
Public Instance Methods
idol(name = nil)
click to toggle source
# File lib/shinycolors/cli.rb, line 9 def idol(name = nil) if name ShinyColors::Idol.send(name).display else ShinyColors::Idol.sample.display end end
unit(name = nil)
click to toggle source
# File lib/shinycolors/cli.rb, line 18 def unit(name = nil) if name ShinyColors.send(name).display else ShinyColors::Unit.sample.display end end
version()
click to toggle source
# File lib/shinycolors/cli.rb, line 27 def version puts "shinycolors version #{ShinyColors::VERSION}" end