Sha256: 44d7b6bf3538b4f7bf8f920f63a285faeaa1d90587271c9be14d44f176c1ac1b

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

module Repeatable
  module Expression
    class Set < Base
      def initialize(*elements)
        @elements = elements.flatten
      end

      def <<(element)
        elements << element
        self
      end

      private

      attr_reader :elements
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
repeatable-0.1.0 lib/repeatable/expression/set.rb