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

Class Method Summary collapse

Class Attribute Details

.configurationObject

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

Yields:



10
11
12
13
# File 'lib/truncate_html/configuration.rb', line 10

def self.configure
  self.configuration ||= Configuration.new
  yield configuration
end