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
Imported File#ftype spec from rubyspecs.
[rbx.git]
/
lib
/
rbyaml
/
util.rb
blob
8af4f7acc22b97cc3818d505539c194fd8449894
1
class Object
2
def __is_str; false end
3
def __is_sym; false end
4
def __is_a; false end
5
def __is_int; false end
6
end
7
8
class String
9
def __is_str; true end
10
end
11
12
class Symbol
13
def __is_sym; true end
14
end
15
16
class Array
17
def __is_a; true end
18
end
19
20
class Integer
21
def __is_int; true end
22
end
23
24
class Fixnum
25
def __is_ascii_num
26
self <= ?9 && self >= ?0
27
end
28
end