Module: Downr

Defined in:
lib/downr.rb,
lib/downr/engine.rb,
lib/downr/render.rb,
lib/downr/railtie.rb,
lib/downr/version.rb,
lib/downr/markdown.rb,
lib/downr/configuration.rb,
lib/downr/action_view/helpers.rb,
lib/generators/downr/install/install_generator.rb

Overview

Gem Version

Defined Under Namespace

Modules: Helpers Classes: Configuration, Engine, InstallGenerator, Markdown, Railtie, Render

Constant Summary collapse

VERSION =
"0.0.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



22
23
24
# File 'lib/downr.rb', line 22

def configuration
  @configuration
end

.markdownObject

Returns the value of attribute markdown.



22
23
24
# File 'lib/downr.rb', line 22

def markdown
  @markdown
end

Class Method Details

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

static method to define a Configuration object with the given initialized data

Yields:



27
28
29
30
31
32
# File 'lib/downr.rb', line 27

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)

  self.markdown ||= Markdown.new
end