Class: Pdf2Html::OptionProvider
- Inherits:
-
Object
- Object
- Pdf2Html::OptionProvider
- Defined in:
- lib/pdf2html/option_provider.rb
Instance Attribute Summary collapse
-
#keys ⇒ Object
readonly
, :switches.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ OptionProvider
constructor
A new instance of OptionProvider.
- #to_h ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ OptionProvider
Returns a new instance of OptionProvider.
50 51 52 53 |
# File 'lib/pdf2html/option_provider.rb', line 50 def initialize( = {}) @keys = PDF2HTMLEX_OPTIONS.keys & .keys = () end |
Instance Attribute Details
#keys ⇒ Object (readonly)
, :switches
48 49 50 |
# File 'lib/pdf2html/option_provider.rb', line 48 def keys @keys end |
Instance Method Details
#to_h ⇒ Object
66 67 68 |
# File 'lib/pdf2html/option_provider.rb', line 66 def to_h end |
#to_s ⇒ Object
55 56 57 58 59 60 61 62 63 64 |
# File 'lib/pdf2html/option_provider.rb', line 55 def to_s return "" if @keys.empty? ||= "" .each do |key, val| = + "#{PDF2HTMLEX_OPTIONS[key]} #{key.to_sym.inspect.to_s} " end end |