tabularasa 0.2.4.2 → 0.2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tabularasa.rb +2 -4
- data/tabularasa.gemspec +1 -1
- metadata +1 -1
data/lib/tabularasa.rb
CHANGED
@@ -38,13 +38,11 @@ class Tabularasa
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def collect_hash(object)
|
41
|
-
|
42
|
-
@keys.collect{|key| object[key] || object.respond_to?(key) ? object.send(key) : object.send(*(key.gsub(")","").split(/\(|,/)))}
|
41
|
+
@keys.collect{|key| object[key]}
|
43
42
|
end
|
44
43
|
|
45
44
|
def collect_array(object)
|
46
|
-
|
47
|
-
@keys.collect{|key| object[key] || object.respond_to?(key) ? object.send(key) : object.send(*(key.gsub(")","").split(/\(|,/)))}
|
45
|
+
@keys.collect{|key| object[key]}
|
48
46
|
end
|
49
47
|
|
50
48
|
def collect_unsupported(object)
|
data/tabularasa.gemspec
CHANGED