Sha256: fc53e350c62d4fe0bf698a6e29d105276443470582cae9cd96c2510d24b1a677

Contents?: true

Size: 102 Bytes

Versions: 28

Compression:

Stored size: 102 Bytes

Contents

# frozen_string_literal: true

class String
  def bullet_class_name
    sub(/:[^:]*?$/, '')
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
bullet-7.2.0 lib/bullet/ext/string.rb
bullet-7.1.6 lib/bullet/ext/string.rb
bullet-7.1.5 lib/bullet/ext/string.rb
bullet-7.1.4 lib/bullet/ext/string.rb
bullet-7.1.3 lib/bullet/ext/string.rb
bullet-7.1.2 lib/bullet/ext/string.rb
bullet-7.1.1 lib/bullet/ext/string.rb
bullet-7.1.0 lib/bullet/ext/string.rb
bullet-7.0.7 lib/bullet/ext/string.rb
bullet-7.0.6 lib/bullet/ext/string.rb
bullet-7.0.5 lib/bullet/ext/string.rb
bullet-7.0.4 lib/bullet/ext/string.rb
bullet-7.0.3 lib/bullet/ext/string.rb
bullet-7.0.2 lib/bullet/ext/string.rb
bullet-7.0.1 lib/bullet/ext/string.rb
bullet-7.0.0 lib/bullet/ext/string.rb
bullet-6.1.5 lib/bullet/ext/string.rb
bullet-6.1.4 lib/bullet/ext/string.rb
bullet-6.1.3 lib/bullet/ext/string.rb
bullet-6.1.2 lib/bullet/ext/string.rb