Sha256: dc502ea76a9c0c7005e6b0f1a472524ccf4f7f2fd2bb215926d8fb2d3e445d98

Contents?: true

Size: 538 Bytes

Versions: 6819

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

module PryByebug
  module Helpers
    #
    # Helpers to help handling multiline inputs
    #
    module Multiline
      #
      # Returns true if we are in a multiline context and, as a side effect,
      # updates the partial evaluation string with the current input.
      #
      # Returns false otherwise
      #
      def check_multiline_context
        return false if eval_string.empty?

        eval_string.replace("#{eval_string}#{match} #{arg_string}\n")
        true
      end
    end
  end
end

Version data entries

6,819 entries across 6,814 versions & 32 rubygems

Version Path
ory-hydra-client-1.11.6 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-keto-client-0.8.0.alpha1 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha105 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha104 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha103 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-hydra-client-1.11.5 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha101 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha100 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-hydra-client-1.11.4 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha99 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha98 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha97 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha96 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha95 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha94 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha93 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha92 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-oathkeeper-client-0.38.20.beta1 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha91 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb
ory-client-0.0.1.alpha90 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb