Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/tupac/ext.rb

Direct Known Subclasses

Tupac

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.at_2pac(i) ⇒ Object



8
9
10
# File 'lib/tupac/ext.rb', line 8

def self.at_2pac(i)
  Tupac.at(i)
end

Instance Method Details

#to_2pacObject



4
5
6
# File 'lib/tupac/ext.rb', line 4

def to_2pac
  Tupac.at(to_i - Tupac::OFFSET).to_i
end