da_huangs_ruby_extensions 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -11,3 +11,6 @@ NilClass.send :include, DaHuang::NilClassExt
11
11
  require 'string_ext'
12
12
  String.send :include, DaHuang::StringExt
13
13
 
14
+ require 'object_ext'
15
+ Object.send :include, DaHuang::ObjectExt
16
+
data/lib/object_ext.rb ADDED
@@ -0,0 +1,8 @@
1
+ module DaHuang
2
+ module ObjectExt
3
+ def is_numeric?
4
+ kind_of?(Fixnum) || kind_of?(Fload) || to_s.match(/\s\w/)
5
+ end
6
+ end
7
+ end
8
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_huangs_ruby_extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Gannon
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-25 00:00:00 -07:00
18
+ date: 2010-07-27 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -51,6 +51,7 @@ files:
51
51
  - lib/da_huangs_ruby_extensions.rb
52
52
  - lib/hash_ext.rb
53
53
  - lib/nil_class_ext.rb
54
+ - lib/object_ext.rb
54
55
  - lib/string_ext.rb
55
56
  - test/helper.rb
56
57
  - test/test_da_huangs_ruby_extensions.rb