Sha256: d32632deb0cbc7231b1164e938dc68487519af71f2e87f233d67c758633c3ee5
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
require_relative "app" module Tika class Resource attr_reader :file, :app, :opts def initialize(file, opts={}) @file = file @app = App.new @opts = opts end def text @text ||= app.get_text(file, opts) end def metadata @metadata ||= app.get_metadata(file, opts) end def content_type @content_type ||= app.detect(file, opts) end def language @language ||= app.get_language(file, opts) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tika-app-0.2.0 | lib/tika/resource.rb |
tika-app-0.1.1 | lib/tika/resource.rb |
tika-app-0.1.0 | lib/tika/resource.rb |