Method: Phlex::SGML#plain
- Defined in:
- lib/phlex/sgml.rb
permalink #plain(content) ⇒ Object
Output plain text.
158 159 160 161 162 163 164 |
# File 'lib/phlex/sgml.rb', line 158 def plain(content) unless __text__(content) raise Phlex::ArgumentError.new("You've passed an object to plain that is not handled by format_object. See https://rubydoc.info/gems/phlex/Phlex/SGML#format_object-instance_method for more information") end nil end |