Sha256: 3edced43aff71aa9bfef0f523dbbd3168cf226cf93e0a480193c69a5cea897a4

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

module Mention
  class MentionList
    include Virtus.value_object(strict: true)
    values do
      attribute :mentions, Array[Mention]
    end

    extend Forwardable
    def_delegator :mentions, :each
    include Enumerable
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mention-api-0.1.0 lib/mention/mention_list.rb
mention-api-0.0.3 lib/mention/mention_list.rb
mention-api-0.0.2 lib/mention/mention_list.rb