class Riddler::Drops::HashDrop

Attributes

hash[R]

Public Class Methods

new(hash) click to toggle source
# File lib/riddler/drops/hash_drop.rb, line 7
def initialize hash
  @hash = Hash[ hash.map { |k,v| [k.to_s, v] } ]
end

Public Instance Methods

[]=(key, value) click to toggle source
# File lib/riddler/drops/hash_drop.rb, line 11
def []= key, value
  @hash[key.to_s] = value
end
liquid_method_missing(method) click to toggle source
# File lib/riddler/drops/hash_drop.rb, line 15
def liquid_method_missing method
  @hash[method]
end
method_missing(method, *_args) click to toggle source
# File lib/riddler/drops/hash_drop.rb, line 23
def method_missing method, *_args
  liquid_method_missing method.to_s
end
to_hash() click to toggle source
# File lib/riddler/drops/hash_drop.rb, line 19
def to_hash
  hash
end