Class: WkHtml::ToPdf::ObjectSettings
- Inherits:
-
Object
- Object
- WkHtml::ToPdf::ObjectSettings
- Includes:
- Settings
- Defined in:
- lib/wkhtml/to_pdf/object_settings.rb,
ext/wkhtml/wkhtml.c
Constant Summary collapse
- KEYS =
%w( toc.useDottedLines toc.captionText toc.forwardLinks toc.backLinks toc.indentation toc.fontScale page useExternalLinks useLocalLinks replacements TODO produceForms includeInOutline pagesCount tocXsl )
- DEFAULTS =
{}
Constants included from Settings
Settings::FALSE, Settings::TRUE
Instance Method Summary collapse
Methods included from Settings
included, #initialize, #to_hash
Instance Method Details
#[] ⇒ Object
#[]= ⇒ Object
#page=(v) ⇒ Object
27 28 29 30 31 |
# File 'lib/wkhtml/to_pdf/object_settings.rb', line 27 def page=(v) v = CommonSettings::cleanup_path(v) raise ArgumentError.new("#{v} is missing or not readable") unless CommonSettings::readable?(v) self['page'] = v end |
#stdin=(v) ⇒ Object
33 34 35 |
# File 'lib/wkhtml/to_pdf/object_settings.rb', line 33 def stdin=(v) self.in = v ? CommonSettings::STDIN : '' end |