lib/cuker/helpers/formatters/abstract_model.rb in cuker-0.5.22 vs lib/cuker/helpers/formatters/abstract_model.rb in cuker-0.6.5
- old
+ new
@@ -40,18 +40,11 @@
init_logger
@title = []
@data = []
end
- def get_values_ary ary_of_hshs
- get_item_ary ary_of_hshs, :values
- end
- def get_keys_ary ary_of_hshs
- get_item_ary ary_of_hshs, :keys
- end
-
# utility methods
# used by any model
def name_merge hsh
str = ""
@@ -88,12 +81,22 @@
@log.debug "No Tags found in #{hsh[:keyword]} @ #{@file_path}"
[]
end
end
+
+ def get_values_ary ary_of_hshs
+ get_item_ary ary_of_hshs, :values
+ end
+
+ def get_keys_ary ary_of_hshs
+ get_item_ary ary_of_hshs, :keys
+ end
+
private
def get_item_ary ary_of_hshs, item
ary_of_hshs.map(&item).flatten
end
+
end
end
\ No newline at end of file