rns 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/rns/version.rb +1 -1
- data/lib/rns.rb +1 -1
- data/spec/rns/rns_spec.rb +2 -2
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -24,8 +24,8 @@ module Statistics
|
|
24
24
|
end
|
25
25
|
|
26
26
|
class Main
|
27
|
-
extend Rns.
|
28
|
-
include Rns.
|
27
|
+
extend Rns.use(Arithmetic => [:inc])
|
28
|
+
include Rns.use(Statistics => [:avg])
|
29
29
|
|
30
30
|
def main
|
31
31
|
puts "1+1 is #{self.class.inc 1} and the average of [1,2,3] is #{avg [1,2,3]}"
|
data/lib/rns/version.rb
CHANGED
data/lib/rns.rb
CHANGED
data/spec/rns/rns_spec.rb
CHANGED
@@ -45,8 +45,8 @@ module Util
|
|
45
45
|
end
|
46
46
|
|
47
47
|
class Thing
|
48
|
-
extend Rns.
|
49
|
-
include Rns.
|
48
|
+
extend Rns.use(Math::Arithmetic => [:inc])
|
49
|
+
include Rns.use(Math::Statistics => [:avg])
|
50
50
|
|
51
51
|
def self.inced_one
|
52
52
|
inc 1
|