Module: MakePDF::CommandBased::Arguments
- Included in:
- Writer, FirefoxPDFWriter
- Defined in:
- lib/make_pdf/command_based.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
Instance Method Summary collapse
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
8 9 10 |
# File 'lib/make_pdf/command_based.rb', line 8 def base @base end |
Instance Method Details
#make_arguments(*options, **more) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/make_pdf/command_based.rb', line 10 def make_arguments(*, **more) [ .map { |val| val.to_s }, more .transform_keys { |key| key.to_s.gsub('_','-') } .filter_map do |key, value| map_option_key(key, value.to_s) end ].flatten end |