Sha256: a411b5375b99e378033e6dda60dad49692888058c4a1ade6a248d679ffc81047
Contents?: true
Size: 238 Bytes
Versions: 4
Compression:
Stored size: 238 Bytes
Contents
require 'ostruct' module Hyde class OStruct < OpenStruct def merge!(hash) hash.each_pair { |key, value| self.send "#{key.to_s}=".to_sym, value } end def include?(key) @table.keys.include? key end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hydeweb-0.0.8.pre2 | lib/hyde/ostruct.rb |
hydeweb-0.0.8.pre1 | lib/hyde/ostruct.rb |
hydeweb-0.0.7 | lib/hyde/ostruct.rb |
hydeweb-0.0.5 | lib/hyde/ostruct.rb |