module Sastrawi
  module Stemmer
    module Cache
      class ArrayCache
        attr_accessor :data

        def initialize
          @data = {}
        end

        def set(key, value)
          @data[key.to_sym] = value
        end

        def get(key)
          return @data[key.to_sym] if @data.key?(key.to_sym)
        end

        def has(key)
          return key if @data.key?(key.to_sym)
        end
      end
    end
  end
end

module Sastrawi
  module Stemmer
    module Cache
      class ArrayCache
        attr_accessor :data

        def initialize
          @data = {}
        end

        def set(key, value)
          @data[key.to_sym] = value
        end

        def get(key)
          return @data[key.to_sym] if @data.key?(key.to_sym)
        end

        def has?(key)
          @data.key?(key.to_sym)
        end
      end
    end
  end
end

Fix implementation of "has" method
Fix implementation of "has" method
