Sha256: ec5855a628db2b3f13fd2c2ef0c7ac1981498d03af97b02340aec4dc9a65a25e

Contents?: true

Size: 257 Bytes

Versions: 10

Compression:

Stored size: 257 Bytes

Contents

class Object # :nodoc:all
  
  # 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

10 entries across 10 versions & 1 rubygems

Version Path
picky-1.2.0 lib/picky/extensions/object.rb
picky-1.1.7 lib/picky/extensions/object.rb
picky-1.1.6 lib/picky/extensions/object.rb
picky-1.1.5 lib/picky/extensions/object.rb
picky-1.1.4 lib/picky/extensions/object.rb
picky-1.1.3 lib/picky/extensions/object.rb
picky-1.1.2 lib/picky/extensions/object.rb
picky-1.1.1 lib/picky/extensions/object.rb
picky-1.1.0 lib/picky/extensions/object.rb
picky-1.0.0 lib/picky/extensions/object.rb