Sha256: 654f0a553fdc7fdb7a298757049635a0be74ecce977f15cb4027c4560d8d536e

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

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

9 entries across 9 versions & 1 rubygems

Version Path
rom-sql-3.1.0 lib/rom/types/values.rb
rom-sql-3.0.1 lib/rom/types/values.rb
rom-sql-3.0.0 lib/rom/types/values.rb
rom-sql-2.5.0 lib/rom/types/values.rb
rom-sql-2.4.0 lib/rom/types/values.rb
rom-sql-2.3.0 lib/rom/types/values.rb
rom-sql-2.2.1 lib/rom/types/values.rb
rom-sql-2.2.0 lib/rom/types/values.rb
rom-sql-2.1.0 lib/rom/types/values.rb