Class: Ramble::BlogPost::MarkdownParser
- Inherits:
-
Object
- Object
- Ramble::BlogPost::MarkdownParser
- Defined in:
- lib/ramble/blog_post/markdown_parser.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#preview ⇒ Object
readonly
Returns the value of attribute preview.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(contents_of_file) ⇒ MarkdownParser
constructor
A new instance of MarkdownParser.
Constructor Details
#initialize(contents_of_file) ⇒ MarkdownParser
Returns a new instance of MarkdownParser.
9 10 11 12 13 14 |
# File 'lib/ramble/blog_post/markdown_parser.rb', line 9 def initialize(contents_of_file) @contents_of_file = contents_of_file @title = parsed_title @body = parsed_body @preview = parsed_preview end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/ramble/blog_post/markdown_parser.rb', line 7 def body @body end |
#preview ⇒ Object (readonly)
Returns the value of attribute preview.
7 8 9 |
# File 'lib/ramble/blog_post/markdown_parser.rb', line 7 def preview @preview end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/ramble/blog_post/markdown_parser.rb', line 7 def title @title end |