Sha256: 381b10e820a0e943745fd50b68564b76cd877bae71a6c99afee5c978d12d57ff

Contents?: true

Size: 310 Bytes

Versions: 12

Compression:

Stored size: 310 Bytes

Contents


module AjaxCat

	module Request

		class Simple < Raw

			def initialize(sentence)
				super(sentence)
				@best_translation = false
			end

			def result
				@best_translation
			end

			def process_line(line)
				@best_translation = line.split(" ||| ")[1] unless @best_translation
			end

		end

	end


end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ajax-cat-2.1.0 lib/ajax-cat/request/simple.rb
ajax-cat-2.0.5 lib/ajax-cat/request/simple.rb
ajax-cat-2.0.4 lib/ajax-cat/request/simple.rb
ajax-cat-2.0.3 lib/ajax-cat/request/simple.rb
ajax-cat-2.0.2 lib/ajax-cat/request/simple.rb
ajax-cat-2.0.1 lib/ajax-cat/request/simple.rb
ajax-cat-1.0.0 lib/ajax-cat/request/simple.rb
ajax-cat-0.5.0 lib/ajax-cat/request/simple.rb
ajax-cat-0.4.2 lib/ajax-cat/request/simple.rb
ajax-cat-0.4.1 lib/ajax-cat/request/simple.rb
ajax-cat-0.4.0 lib/ajax-cat/request/simple.rb
ajax-cat-0.3.0 lib/ajax-cat/request/simple.rb