Sha256: e60a5972e50581ab2bb7d185ff4b0fea7588ae584af32fdb1ae3fdc2e4f12316

Contents?: true

Size: 292 Bytes

Versions: 22

Compression:

Stored size: 292 Bytes

Contents

require 'wukong/extensions/hash'
require 'wukong/extensions/hash_like'
require 'wukong/extensions/symbol'

#
# extensions/struct
#
# Add several methods to make a struct duck-type much more like a Hash
#
Struct.class_eval do
  include Wukong::HashLike
  def self.keys
    members
  end
end


Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
mrflip-wukong-0.1.0 lib/wukong/extensions/struct.rb
wukong-3.0.0.pre old/wukong/extensions/struct.rb
wukong-2.0.2 lib/wukong/extensions/struct.rb
wukong-2.0.1 lib/wukong/extensions/struct.rb
wukong-2.0.0 lib/wukong/extensions/struct.rb
wukong-1.5.4 lib/wukong/extensions/struct.rb
wukong-1.5.3 lib/wukong/extensions/struct.rb
wukong-1.5.2 lib/wukong/extensions/struct.rb
wukong-1.5.1 lib/wukong/extensions/struct.rb
wukong-1.5.0 lib/wukong/extensions/struct.rb
wukong-1.4.12 lib/wukong/extensions/struct.rb
wukong-1.4.11 lib/wukong/extensions/struct.rb
wukong-1.4.10 lib/wukong/extensions/struct.rb
wukong-1.4.9 lib/wukong/extensions/struct.rb
wukong-1.4.7 lib/wukong/extensions/struct.rb
wukong-1.4.6 lib/wukong/extensions/struct.rb
wukong-1.4.5 lib/wukong/extensions/struct.rb
wukong-1.4.2 lib/wukong/extensions/struct.rb
wukong-1.4.1 lib/wukong/extensions/struct.rb
wukong-1.4.0 lib/wukong/extensions/struct.rb