Sha256: a6122aca2853f584766ec13e1f9f3a390c5b2dc1282c0d6f750d3c79af128883

Contents?: true

Size: 335 Bytes

Versions: 27

Compression:

Stored size: 335 Bytes

Contents

# Steep runs on Ruby 2.6 and it needs a shim of `Symbol#start_with?`

module Shims
  module SymbolStartWith
    def start_with?(*args)
      to_s.start_with?(*args)
    end

    def end_with?(*args)
      to_s.end_with?(*args)
    end
  end

  unless Symbol.method_defined?(:start_with?)
    Symbol.include(SymbolStartWith)
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
steep-1.5.3 lib/steep/shims/symbol_start_with.rb
steep-1.5.2 lib/steep/shims/symbol_start_with.rb
steep-1.5.1 lib/steep/shims/symbol_start_with.rb
steep-1.5.0 lib/steep/shims/symbol_start_with.rb
steep-1.5.0.pre.6 lib/steep/shims/symbol_start_with.rb
steep-1.5.0.pre.5 lib/steep/shims/symbol_start_with.rb
steep-1.5.0.pre.4 lib/steep/shims/symbol_start_with.rb
steep-1.5.0.pre.3 lib/steep/shims/symbol_start_with.rb
steep-1.5.0.pre.2 lib/steep/shims/symbol_start_with.rb
steep-1.5.0.pre.1 lib/steep/shims/symbol_start_with.rb
steep-1.4.0 lib/steep/shims/symbol_start_with.rb
steep-1.4.0.dev.5 lib/steep/shims/symbol_start_with.rb
steep-1.4.0.dev.4 lib/steep/shims/symbol_start_with.rb
steep-1.4.0.dev.3 lib/steep/shims/symbol_start_with.rb
steep-1.3.2 lib/steep/shims/symbol_start_with.rb
steep-1.3.1 lib/steep/shims/symbol_start_with.rb
steep-1.4.0.dev.2 lib/steep/shims/symbol_start_with.rb
steep-1.4.0.dev.1 lib/steep/shims/symbol_start_with.rb
steep-1.3.0 lib/steep/shims/symbol_start_with.rb
steep-1.3.0.pre.2 lib/steep/shims/symbol_start_with.rb