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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flex_core.rb +33 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e53fdfb78093e091a095d9fe6dfdfa3d3bd42b5
4
- data.tar.gz: a6f016f4b547c54be809c88e006f6e785d553ae0
3
+ metadata.gz: e4e30b192ebf519879abfbff33938ed706ace435
4
+ data.tar.gz: ed92bdd407b014e362ffffff60b846108c1280db
5
5
  SHA512:
6
- metadata.gz: 37021cfbac33acd3067752ace600ab58663a260b4afbbe795c1cb0247d3ffab68c80836e183de8f4886b922ff00f6dca434684d1166d020b035a2ac9b0b4125e
7
- data.tar.gz: 77eb21f19cb1d89e0806a8807e75f8344ee78d076811a1b1067d6bb2b5c3c3d29eecdd52b78393a34dfede80398ab21e75fd5ce990ea05991b461749bbe2ed01
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.1
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-05 00:00:00.000000000 Z
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