Sha256: eb0474c493b389ff3d5c6106044a806ef8988228c4fd8129556aec410bb112e3

Contents?: true

Size: 464 Bytes

Versions: 6

Compression:

Stored size: 464 Bytes

Contents

#!/usr/bin/ruby

=begin
= NAME
Fixnum Expandation Code v1.2.0

= SYNOPSIS
.seconds =1
.minutes =60
.hours =3600
.days =86400
.weeks =604800

= DESCRIPTION
This snippet expands Fixnum class and convert
time counts to (('string'))((-Object ending string-))
=end

class Fixnum
  def seconds
    self
  end
  def minutes
    self * 60
  end
  def hours
    self * 60 * 60
  end
  def days
    self * 60 * 60 * 24
  end
  def weeks
    self * 60 * 60 * 24 * 7
  end
end

Version data entries

6 entries across 5 versions & 1 rubygems

Version Path
RubMat-2.2.1 lib/fixnumexpand.rb
RubMat-2.2.0 lib/fixnumexpand.rb
RubMat-2.1.8 lib/fixnumexpand.rb
RubMat-2.1.8 pkg/RubMat-2.1.5/lib/fixnumexpand.rb
RubMat-2.1.6 lib/fixnumexpand.rb
RubMat-2.1.5 lib/fixnumexpand.rb