Sha256: 0536eea6bdf2792e6658ae7d865d931b97e159d75d324396b3050fc958f7b58c

Contents?: true

Size: 576 Bytes

Versions: 6

Compression:

Stored size: 576 Bytes

Contents

if RUBY_VERSION.to_f >= 3.0 && !RUBY_PLATFORM[/java/i]
  require 'sorted_set'
else
  require 'set'
end
require 'character_set/ruby_fallback/set_methods'
require 'character_set/ruby_fallback/character_set_methods'

class CharacterSet
  module RubyFallback
    include CharacterSet::RubyFallback::SetMethods
    include CharacterSet::RubyFallback::CharacterSetMethods

    def self.prepended(klass)
      klass.extend CharacterSet::RubyFallback::CharacterSetMethods::ClassMethods
    end

    def initialize(enum = [])
      @__set = SortedSet.new
      super
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
character_set-1.6.0-java lib/character_set/ruby_fallback.rb
character_set-1.6.0 lib/character_set/ruby_fallback.rb
character_set-1.5.0-java lib/character_set/ruby_fallback.rb
character_set-1.5.0 lib/character_set/ruby_fallback.rb
character_set-1.4.1-java lib/character_set/ruby_fallback.rb
character_set-1.4.1 lib/character_set/ruby_fallback.rb