class Jsonoid::Document::Scope

Public Class Methods

new(type, collection) click to toggle source
# File lib/jsonoid/document.rb, line 102
def initialize(type, collection)
  @type = type
  @collection = collection
end

Public Instance Methods

each() { |parse| ... } click to toggle source
# File lib/jsonoid/document.rb, line 107
def each
  @collection.each do |data|
    yield @type.parse(data)
  end
end