Class: Rack::Markdown
- Inherits:
-
Object
- Object
- Rack::Markdown
- Defined in:
- lib/rack/markdown/markdown.rb,
lib/rack/markdown.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(path) ⇒ Markdown
constructor
A new instance of Markdown.
Methods included from HTML
Methods included from CSS
Constructor Details
#initialize(path) ⇒ Markdown
Returns a new instance of Markdown.
5 6 7 |
# File 'lib/rack/markdown/markdown.rb', line 5 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/rack/markdown/markdown.rb', line 3 def path @path end |
Class Method Details
.version ⇒ Object
13 14 15 |
# File 'lib/rack/markdown/markdown.rb', line 13 def self.version '0.0.3' end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 |
# File 'lib/rack/markdown/markdown.rb', line 9 def call(env) [200, { 'Content-Type' => 'text/html' }, [html]] end |