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.5.7"

Class Method Summary collapse

Class Method Details

.get_hash_value(obj, key) ⇒ Object



12
13
14
15
# File 'lib/my_plugin.rb', line 12

def self.get_hash_value(obj, key)
  obj = Hash[*obj.split(',')]
  obj[key]
end

.new_hash(obj, key_pair) ⇒ Object



6
7
8
9
10
# File 'lib/my_plugin.rb', line 6

def self.new_hash(obj, key_pair)
  obj = key_pair
  # obj = Hash[*key_pair.split(',')]
  # obj = self.trim(obj)
end