Sha256: 164a8be477e7620e96beeaf6162846965704813701ad78d22acc48c772082a2f

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 Bytes

Contents

module Micronaut
  module Expectations
    module StringHelpers
      def starts_with?(prefix)
        to_s[0..(prefix.to_s.length - 1)] == prefix.to_s
      end
    end
  end
end

class String
  include Micronaut::Expectations::StringHelpers
end

class Symbol
  include Micronaut::Expectations::StringHelpers
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spicycode-micronaut-0.0.2 lib/micronaut/expectations/string_and_symbol_extensions.rb
spicycode-micronaut-0.0.3 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.0.4 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.0.5 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.0.6 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.0.7 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.0.9 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.1.0 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.1.1 lib/micronaut/expectations/extensions/string_and_symbol.rb
spicycode-micronaut-0.1.2 lib/micronaut/expectations/extensions/string_and_symbol.rb