Sha256: 76342d09c349ee54feb40cd52a73b01695cbc57e61eda891b7bf9e18da3e983c
Contents?: true
Size: 269 Bytes
Versions: 43
Compression:
Stored size: 269 Bytes
Contents
require 'ostruct' module Blacklight class OpenStructWithHashAccess < OpenStruct delegate :keys, :merge, :to => :to_h def []=(key, value) send "#{key}=", value end def [](key) send key end def to_h @table end end end
Version data entries
43 entries across 43 versions & 1 rubygems