Module: Peppercorn
- Defined in:
- lib/peppercorn.rb,
lib/peppercorn/xml.rb,
lib/peppercorn/string.rb,
lib/peppercorn/version.rb,
lib/peppercorn/xml/node.rb
Overview
The peppercorn gem is a library for helping out with HTML, XML, and Strings.
Peppercorn added some methods to the String and Nokogiri::XML::Node classes to do its work.
Defined Under Namespace
Constant Summary collapse
- DEFAULT_TRUNCATION_OPTIONS =
Default options for truncating strings and html
* WARNING: The undocumented options could change or be removed with any release without notice *
{ # Documented options :tail => "…", # Undocumented options :strip => true, :return_hash => false, :return_node => false }
- TRUNCATE_CHILD_OPTS =
Options to override when recursively truncating a child node
{ :tail => nil, :return_hash => true, :return_node => true, :strip => false }
- VERSION =
The current peppercorn version
"0.0.3"