Sha256: c2e261853a53133aabe8ea998adcafbe312af40182a9c2263f6ac147cea63a5f

Contents?: true

Size: 437 Bytes

Versions: 13

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

require 'rom/sql/types'

module ROM
  module Types
    module Values
      class TreePath < ::Struct.new(:value, :separator)
        DEFAULT_SEPARATOR = '.'.freeze

        # @api public
        def self.new(value, separator = DEFAULT_SEPARATOR)
          super
        end

        # @api public
        def to_s
          value
        end
        alias_method :to_str, :to_s
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rom-sql-3.6.5 lib/rom/types/values.rb
rom-sql-3.6.4 lib/rom/types/values.rb
rom-sql-3.6.3 lib/rom/types/values.rb
rom-sql-3.6.2 lib/rom/types/values.rb
rom-sql-3.6.1 lib/rom/types/values.rb
rom-sql-3.6.0 lib/rom/types/values.rb
rom-sql-3.5.0 lib/rom/types/values.rb
rom-sql-3.4.0 lib/rom/types/values.rb
rom-sql-3.3.3 lib/rom/types/values.rb
rom-sql-3.3.2 lib/rom/types/values.rb
rom-sql-3.3.1 lib/rom/types/values.rb
rom-sql-3.3.0 lib/rom/types/values.rb
rom-sql-3.2.0 lib/rom/types/values.rb