Module: Pasta

Defined in:
lib/pasta.rb,
lib/pasta/dish.rb,
lib/pasta/error.rb,
lib/pasta/version.rb,
lib/pasta/cookbook.rb,
lib/pasta/ingredients.rb,
lib/pasta/recipes/base.rb,
lib/pasta/recipes/gruber.rb,
lib/pasta/ingredients/code.rb,
lib/pasta/recipes/markdown.rb,
lib/pasta/ingredients/links.rb,
lib/pasta/ingredients/lists.rb,
lib/pasta/ingredients/anything.rb,
lib/pasta/ingredients/emphasis.rb,
lib/pasta/ingredients/codeblocks.rb,
lib/pasta/ingredients/paragraphs.rb,
lib/pasta/ingredients/blockquotes.rb,
lib/pasta/ingredients/empty_lines.rb,
lib/pasta/ingredients/page_breaks.rb,
lib/pasta/ingredients/atx_headings.rb,
lib/pasta/ingredients/html_entities.rb,
lib/pasta/ingredients/automatic_links.rb,
lib/pasta/ingredients/setext_headings.rb

Defined Under Namespace

Modules: Ingredients, Recipes Classes: Dish, Error

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.prepare(sauce) ⇒ Object

Public: Instantiates a new Pasta::Dish object with text to be parsed.

sauce - the text to be parsed

Example:

Pasta.prepare 'some yummy text'
# => #<Pasta::Dish:0x007ff232948938>

Returns a Pasta::Dish



15
16
17
# File 'lib/pasta.rb', line 15

def self.prepare(sauce)
  Pasta::Dish.new sauce
end