Class: Pdf2Html::Caller
- Inherits:
-
Object
- Object
- Pdf2Html::Caller
- Defined in:
- lib/pdf2html/caller.rb
Instance Attribute Summary collapse
-
#cmd_options ⇒ Object
readonly
Returns the value of attribute cmd_options.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(options) ⇒ Caller
constructor
A new instance of Caller.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Caller
Returns a new instance of Caller.
10 11 12 13 |
# File 'lib/pdf2html/caller.rb', line 10 def initialize() = OptionProvider.new() @line = ::Cocaine::CommandLine.new(PDF2HTMLEX, .to_s) end |
Instance Attribute Details
#cmd_options ⇒ Object (readonly)
Returns the value of attribute cmd_options.
8 9 10 |
# File 'lib/pdf2html/caller.rb', line 8 def end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
8 9 10 |
# File 'lib/pdf2html/caller.rb', line 8 def line @line end |
Instance Method Details
#run ⇒ Object
15 16 17 |
# File 'lib/pdf2html/caller.rb', line 15 def run @line.run(.to_h) end |