Class: Tug::NotesParser
- Inherits:
-
Object
- Object
- Tug::NotesParser
- Defined in:
- lib/tug/deployment/notes_parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(notes) ⇒ NotesParser
constructor
A new instance of NotesParser.
Constructor Details
#initialize(notes) ⇒ NotesParser
Returns a new instance of NotesParser.
16 17 18 |
# File 'lib/tug/deployment/notes_parser.rb', line 16 def initialize(notes) @notes = %Q|#{notes}| end |
Instance Attribute Details
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
4 5 6 |
# File 'lib/tug/deployment/notes_parser.rb', line 4 def notes @notes end |
Class Method Details
.notes_parser(notes) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/tug/deployment/notes_parser.rb', line 7 def notes_parser(notes) if File.file? notes Tug::NotesFileParser.new(notes) else Tug::NotesParser.new(notes) end end |