Class: Lipwig::Parser
- Inherits:
-
Object
- Object
- Lipwig::Parser
- Defined in:
- lib/lipwig/parser.rb
Constant Summary collapse
- MARKER =
/---\s*/
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(input) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(input) ⇒ Parser
Returns a new instance of Parser.
8 9 10 |
# File 'lib/lipwig/parser.rb', line 8 def initialize(input) @input = input end |
Class Method Details
.call(input) ⇒ Object
4 5 6 |
# File 'lib/lipwig/parser.rb', line 4 def self.call(input) new(input).call end |