flex_core 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flex_core.rb +33 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4e30b192ebf519879abfbff33938ed706ace435
|
4
|
+
data.tar.gz: ed92bdd407b014e362ffffff60b846108c1280db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9631a95fde3e7e9cb3543e75c45143841b2d5800206c6f81c8ac1606b4d01c2196016983ae3e6e17b34b46799d54f5f13eefc0d9c39ac493a14250a65ce44858
|
7
|
+
data.tar.gz: 48e297472f481a5cc4ad6629221a2cb255d822adc2d5759029510367fe325b87f1cf8bd8cb287c619f16b5d747c9540d6fde7200262e1cd4582de979e59abf76
|
data/lib/flex_core.rb
CHANGED
@@ -62,3 +62,36 @@ class Object
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
class Dummy
|
66
|
+
|
67
|
+
def initialize (name)
|
68
|
+
puts "Dummy object: <#{name}> created."
|
69
|
+
@name = name
|
70
|
+
end
|
71
|
+
|
72
|
+
def method_missing (method, *args, &block)
|
73
|
+
puts "##{method} was called on <#{@name}> with args: #{args}"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
class String
|
78
|
+
|
79
|
+
def to_float
|
80
|
+
self.strip.sub(',', '').to_f
|
81
|
+
end
|
82
|
+
|
83
|
+
def de_accent
|
84
|
+
self_copy = self.deep_copy
|
85
|
+
|
86
|
+
targets = {
|
87
|
+
'â' => 'a'
|
88
|
+
}
|
89
|
+
targets.each { |key, value|
|
90
|
+
self_copy.gsub!(key, value)
|
91
|
+
}
|
92
|
+
|
93
|
+
self_copy
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
97
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flex_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Lai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: To do
|
14
14
|
email: ejt.lai@gmail.com
|