timeunits 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +5 -0
- data/lib/{timeunits-0.0.0.rb → timeunits-0.0.1.rb} +3 -3
- data/lib/timeunits.rb +3 -3
- metadata +2 -2
data/README
CHANGED
@@ -3,12 +3,12 @@ $__timeunits__ = File.expand_path __FILE__
|
|
3
3
|
|
4
4
|
class Time
|
5
5
|
module Units
|
6
|
-
VERSION = "0.0.
|
6
|
+
VERSION = "0.0.1"
|
7
7
|
|
8
8
|
def __less__() "/" end
|
9
9
|
def __more__() "*" end
|
10
|
-
def microseconds() self.send(
|
11
|
-
def milliseconds() self.send(
|
10
|
+
def microseconds() Float(self.send(__more__,(10 ** -6))) end
|
11
|
+
def milliseconds() Float(self.send(__more__,(10 ** -3))) end
|
12
12
|
def seconds() self end
|
13
13
|
def minutes() seconds.send(__more__,60) end
|
14
14
|
def hours() minutes.send(__more__,60) end
|
data/lib/timeunits.rb
CHANGED
@@ -3,12 +3,12 @@ $__timeunits__ = File.expand_path __FILE__
|
|
3
3
|
|
4
4
|
class Time
|
5
5
|
module Units
|
6
|
-
VERSION = "0.0.
|
6
|
+
VERSION = "0.0.1"
|
7
7
|
|
8
8
|
def __less__() "/" end
|
9
9
|
def __more__() "*" end
|
10
|
-
def microseconds() self.send(
|
11
|
-
def milliseconds() self.send(
|
10
|
+
def microseconds() Float(self.send(__more__,(10 ** -6))) end
|
11
|
+
def milliseconds() Float(self.send(__more__,(10 ** -3))) end
|
12
12
|
def seconds() self end
|
13
13
|
def minutes() seconds.send(__more__,60) end
|
14
14
|
def hours() minutes.send(__more__,60) end
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: timeunits
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.1
|
7
7
|
date: 2006-09-05 00:00:00.000000 -06:00
|
8
8
|
summary: timeunits
|
9
9
|
require_paths:
|
@@ -34,7 +34,7 @@ files:
|
|
34
34
|
- gemspec.rb
|
35
35
|
- sample
|
36
36
|
- README
|
37
|
-
- lib/timeunits-0.0.
|
37
|
+
- lib/timeunits-0.0.1.rb
|
38
38
|
- lib/timeunits.rb
|
39
39
|
- sample/a.rb
|
40
40
|
test_files: []
|