Module: MyPlugin
- Defined in:
- lib/my_plugin.rb,
lib/my_plugin/railtie.rb,
lib/my_plugin/version.rb
Defined Under Namespace
Classes: Railtie
Constant Summary collapse
- VERSION =
"0.6.3"
Class Method Summary collapse
- .concat_hash(obj, key_pair) ⇒ Object
- .get_hash_value(obj, key) ⇒ Object
- .new_hash(obj, key_pair) ⇒ Object
Class Method Details
.concat_hash(obj, key_pair) ⇒ Object
10 11 12 13 |
# File 'lib/my_plugin.rb', line 10 def self.concat_hash(obj, key_pair) obj.concat(",") obj.concat(key_pair) end |
.get_hash_value(obj, key) ⇒ Object
15 16 17 18 |
# File 'lib/my_plugin.rb', line 15 def self.get_hash_value(obj, key) obj = Hash[*obj.split(',')] obj[key] end |
.new_hash(obj, key_pair) ⇒ Object
6 7 8 |
# File 'lib/my_plugin.rb', line 6 def self.new_hash(obj, key_pair) obj = key_pair end |