Sha256: 684a7f77c4f8f6735d55fb646312df54cb369cadf8150db7506e5f07eadeff1b
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 Bytes
Contents
# frozen_string_literal: true # String formatting methods module Glyptodont class << self def pluralize(items, text) if items == 1 "1 #{text}" else "#{items} #{text}s" end end def format_todo(todo) format("%<file>s:%<line>s: %<text>s -- %<name>s @ %<time>s", todo) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
glyptodont-0.3.0 | lib/glyptodont/formatting.rb |
glyptodont-0.2.0 | lib/glyptodont/formatting.rb |
glyptodont-0.1.0 | lib/glyptodont/formatting.rb |