Sha256: 4a7011408ae9fba37027b3592de2fac032304aafb608c9045646bf1202f5c3e5
Contents?: true
Size: 771 Bytes
Versions: 13
Compression:
Stored size: 771 Bytes
Contents
# TITLE: # # OpenCollection # # DESCRIPTION: # # A mapping OpenObject. # # AUTHOR: # # - Thomas Sawyer # # LICENSE: # # 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 # 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
13 entries across 13 versions & 1 rubygems