Module: Pubid::Rendering::Format
- Included in:
- Base
- Defined in:
- lib/pubid/rendering/format.rb
Instance Method Summary collapse
-
#to_s(format = nil) ⇒ String
Dispatch to appropriate format renderer.
Instance Method Details
#to_s(format = nil) ⇒ String
Dispatch to appropriate format renderer
9 10 11 12 |
# File 'lib/pubid/rendering/format.rb', line 9 def to_s(format = nil) effective_format = determine_format(format) send(:"to_#{effective_format}_style") end |