Sha256: 6af5bd927020d5828c9a27bcff466d569a08f4856c84caeaf6cca3716313e712
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true require_relative 'sanction_item' require 'forwardable' module Ammitto class SanctionItemCollection extend Forwardable def_delegators :@array, :<<, :[], :first, :last, :empty?, :any?, :size, :each, :detect, :map, :reduce, :length def initialize(collection) @array = collection.map { |si| SanctionItem.new(si) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ammitto-0.1.0 | lib/ammitto/sanction_item_collection.rb |