Sha256: a35355d1bee4de4e89af619e50829d1b1cddba62cbf47f68a128cdc63c1691ce

Contents?: true

Size: 244 Bytes

Versions: 5

Compression:

Stored size: 244 Bytes

Contents

class Object
  
  # Puts a text in the form:
  #   12:34:56: text here
  #
  def timed_exclaim text
    exclaim "#{Time.now.strftime("%H:%M:%S")}: #{text}"
  end
  
  # Just puts the given text.
  #
  def exclaim text
    puts text
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
picky-0.12.3 lib/picky/extensions/object.rb
picky-0.12.2 lib/picky/extensions/object.rb
picky-0.12.1 lib/picky/extensions/object.rb
picky-0.12.0 lib/picky/extensions/object.rb
picky-0.11.2 lib/picky/extensions/object.rb