Class: Nin::Parser
- Inherits:
-
Object
- Object
- Nin::Parser
- Defined in:
- lib/nin/parser.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(desc) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(desc) ⇒ Parser
Returns a new instance of Parser.
3 4 5 6 7 |
# File 'lib/nin/parser.rb', line 3 def initialize(desc) @desc = desc @date = extract_date @tags = end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'lib/nin/parser.rb', line 9 def call [@desc, @date, @tags] end |