Sha256: 11f0509c32ac32e57375d9493767e48e1281dbc3d4f136e974aed927096cf78b
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
module DynamicMenu module AdvancedHash class AdvancedHash def initialize @instance = Hash.new end def tap! *args, &block @instance = @instance.tap(*args, &block) end def method_missing method, *args, &block super unless @instance.methods.index method @instance.send method, *args, &block end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynamic_menu-3.0.0.rc2 | lib/dynamic_menu/advanced_hash.rb |