Class: Perron::Markdown::Parser
- Inherits:
-
Object
- Object
- Perron::Markdown::Parser
- Defined in:
- lib/perron/markdown.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**options) ⇒ Parser
constructor
A new instance of Parser.
- #parse(text) ⇒ Object
Constructor Details
#initialize(**options) ⇒ Parser
Returns a new instance of Parser.
50 51 52 |
# File 'lib/perron/markdown.rb', line 50 def initialize(**) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
48 49 50 |
# File 'lib/perron/markdown.rb', line 48 def @options end |
Class Method Details
.available? ⇒ Boolean
56 |
# File 'lib/perron/markdown.rb', line 56 def self.available? = true |
Instance Method Details
#parse(text) ⇒ Object
54 |
# File 'lib/perron/markdown.rb', line 54 def parse(text) = text.to_s |