Sha256: ec9733073b61aa40028f181df795cda655a07a6e718ea83f63c346c30280227b
Contents?: true
Size: 400 Bytes
Versions: 4
Compression:
Stored size: 400 Bytes
Contents
module GeektoolKit class Cal def self.get_data `cal` end def self.get_day Time.now.day.to_s end def self.display cal = get_data output = "" cal.gsub(/(?<leading>\s)(?<date>#{get_day})(?<trailing>\s)/) {|match| output = cal.gsub(match, "#{$~[:leading]}#{Colors.GREEN}#{$~[:date]}#{Colors.RESET}#{$~[:trailing]}")} output end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geektool_kit-0.3.1 | lib/geektool_kit/cal.rb |
geektool_kit-0.3.0 | lib/geektool_kit/cal.rb |
geektool_kit-0.2.1 | lib/geektool_kit/cal.rb |
geektool_kit-0.2.0 | lib/geektool_kit/cal.rb |