lib/core/hash.rb
def method_missing(sym, *args, &block)
    if has_key?(sym.to_sym)
      fetch(sym)
    elsif has_key?(sym.to_s)
      fetch(sym.to_s)
    else
      super
    end
  end
# Return a hash of all the elements where the block evaluates to true
Return a hash of all the elements where the block evaluates to true
Return a hash of all the elements where the block evaluates to true
def method_missing(sym, *args, &block)
    if has_key?(sym.to_sym)
      fetch(sym)
    elsif has_key?(sym.to_s)
      fetch(sym.to_s)
    else
      super
    end
  end
def method_missing ( sym , * args , & block ) if has_key? ( sym . to_sym ) fetch ( sym ) elsif has_key? ( sym . to_s ) fetch ( sym . to_s ) else super end end
Return a hash of all the elements where the block evaluates to true
Return a hash of all the elements where the block evaluates to true
sym
args
block