Sha256: 2915fa478f67c8c6e5c51007ba32041fbabce28bc263a453343ac90261978053

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class TraversalStart < Steppable
    include WithExtension

    class TraversalError < Grumlin::Error; end
    class AlreadyBoundToTransationError < TraversalError; end

    def tx
      raise AlreadyBoundToTransationError if @session_id

      Transaction.new(self.class, pool: @pool)
    end

    def to_s(*)
      self.class.to_s
    end

    def inspect
      self.class.inspect
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grumlin-0.21.1 lib/grumlin/traversal_start.rb