repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Updated RubySpec submodule to 9f66d0b1.
[rbx.git]
/
kernel
/
core
/
precision.rb
blob
927702ddb35bc364e4234e145b53b6f9a0240ce7
1
# depends on: module.rb
2
3
module Precision
4
def prec(klass)
5
klass.induced_from(self)
6
end
7
8
def prec_f
9
prec(Float)
10
end
11
12
def prec_i
13
prec(Integer)
14
end
15
16
def self.included(klass)
17
def klass.induced_from(obj)
18
raise TypeError
19
end
20
end
21
end