Sha256: 5ec40fc47e605090d2e85b7a56490aa8f014e5b96c4d3566b78ef7cd3424653a
Contents?: true
Size: 753 Bytes
Versions: 17
Compression:
Stored size: 753 Bytes
Contents
# = OpenCollection # # A mapping OpenObject. # # == Authors # # * Thomas Sawyer # # == Copying # # Copyright (c) 2005 Thomas Sawyer, George Moschovitis # # Ruby License # # This module is free software. You may use, modify, and/or redistribute this # software under the same terms as Ruby. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. require 'facets/openobject' # = OpenCollection # # Mapping OpenObject. # class OpenCollection def initialize(*hash) @opens = hash.map do |h| OpenObject.new(h) end end def method_missing(sym) @opens.map do |o| o.send(sym) end end end
Version data entries
17 entries across 17 versions & 2 rubygems