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

Version Path
facets-2.8.4 lib/more/facets/opencollection.rb
facets-2.8.3 lib/more/facets/opencollection.rb
facets-2.8.2 lib/more/facets/opencollection.rb
facets-2.8.1 lib/more/facets/opencollection.rb
facets-2.8.0 lib/more/facets/opencollection.rb
facets-2.7.0 lib/more/facets/opencollection.rb
facets-2.6.0 lib/more/facets/opencollection.rb
facets-2.4.0 lib/facets/opencollection.rb
facets-2.4.1 lib/facets/opencollection.rb
facets-2.4.4 lib/more/facets/opencollection.rb
facets-2.4.3 lib/more/facets/opencollection.rb
facets-2.4.2 lib/more/facets/opencollection.rb
facets-2.5.1 lib/more/facets/opencollection.rb
facets-2.4.5 lib/more/facets/opencollection.rb
facets-2.5.0 lib/more/facets/opencollection.rb
facets-2.5.2 lib/more/facets/opencollection.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/more/facets/opencollection.rb