Module: ContentfulConverter

Defined in:
lib/contentful_converter.rb,
lib/contentful_converter/stack.rb,
lib/contentful_converter/version.rb,
lib/contentful_converter/converter.rb,
lib/contentful_converter/nodes/base.rb,
lib/contentful_converter/nodes/code.rb,
lib/contentful_converter/nodes/text.rb,
lib/contentful_converter/nodes/embed.rb,
lib/contentful_converter/tree_cloner.rb,
lib/contentful_converter/node_builder.rb,
lib/contentful_converter/nodes/header.rb,
lib/contentful_converter/nodes/italic.rb,
lib/contentful_converter/nodes/strong.rb,
lib/contentful_converter/configuration.rb,
lib/contentful_converter/nodes/document.rb,
lib/contentful_converter/nodes/hyperlink.rb,
lib/contentful_converter/nodes/list_item.rb,
lib/contentful_converter/nodes/paragraph.rb,
lib/contentful_converter/nodes/underline.rb,
lib/contentful_converter/nodes/blockquote.rb,
lib/contentful_converter/nokogiri_builder.rb,
lib/contentful_converter/nodes/ordered_list.rb,
lib/contentful_converter/nodes/unordered_list.rb,
lib/contentful_converter/nodes/horizontal_line.rb

Defined Under Namespace

Modules: Nodes Classes: Configuration, Converter, NodeBuilder, NokogiriBuilder, Stack, TreeCloner

Constant Summary collapse

VERSION =
'0.0.1.25'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/contentful_converter/configuration.rb', line 5

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
11
12
# File 'lib/contentful_converter/configuration.rb', line 8

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
  self
end

.convert(html) ⇒ Object



6
7
8
# File 'lib/contentful_converter.rb', line 6

def self.convert(html)
  Converter.convert(html)
end