Module: TruncateHtml
- Defined in:
- lib/truncate_html/version.rb,
lib/truncate_html/html_string.rb,
lib/truncate_html/configuration.rb,
lib/truncate_html/html_truncator.rb
Defined Under Namespace
Classes: Configuration, HtmlString, HtmlTruncator
Constant Summary collapse
- VERSION =
"0.9.2"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/truncate_html/configuration.rb', line 7 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
10 11 12 13 |
# File 'lib/truncate_html/configuration.rb', line 10 def self.configure self.configuration ||= Configuration.new yield configuration end |