Sha256: f2ab30acb24748f149ea5cf6c1afed99445469771c6c754215b78606b1e392c7

Contents?: true

Size: 208 Bytes

Versions: 11

Compression:

Stored size: 208 Bytes

Contents

module EDN
  module Type
    class List < ::Array
      def self.new(*values)
        self.[](*values)
      end

      def to_edn
        '(' + self.map(&:to_edn).join(" ") + ')'
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
edn2023-1.1.4 lib/edn/type/list.rb
edn-1.1.1 lib/edn/type/list.rb
edn-1.1.0 lib/edn/type/list.rb
edn-1.0.8 lib/edn/type/list.rb
edn-1.0.7 lib/edn/type/list.rb
edn-1.0.6 lib/edn/type/list.rb
edn-0.9.4 lib/edn/type/list.rb
edn-0.9.3 lib/edn/type/list.rb
edn-0.9.2 lib/edn/type/list.rb
edn-0.9.1 lib/edn/type/list.rb
edn-0.9.0 lib/edn/type/list.rb