Sha256: 2dd734d9d8259d1350bb539d29b11879a9b50b764622ebc67b41442a51bf42ba

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

require 'boilerpipe/version'
require_relative 'boilerpipe-common-2.0-SNAPSHOT-jar-with-dependencies.jar'

module Boilerpipe
  java_import 'com.kohlschutter.boilerpipe.extractors.ArticleExtractor'
  java_import java.net.URL

  class ArticleExtractor
    def  self.get_text(s)
      url = URL.new(s)
      ArticleExtractor::INSTANCE.get_text(url)
    end

    class <<self  
      alias_method :text, :get_text
    end 
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jruby-boilerpipe-0.2.0.rc2 lib/boilerpipe.rb
jruby-boilerpipe-0.2.0.rc1 lib/boilerpipe.rb
jruby-boilerpipe-0.1.0.rc1 lib/boilerpipe.rb