Class: Entry
- Inherits:
-
Object
- Object
- Entry
- Defined in:
- lib/whale.rb
Instance Attribute Summary collapse
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ Entry
constructor
A new instance of Entry.
- #print ⇒ Object
Constructor Details
#initialize ⇒ Entry
Returns a new instance of Entry.
15 16 17 |
# File 'lib/whale.rb', line 15 def initialize() @tags = { title: '', body: '', line: 0, file: '', tags: '' } end |
Instance Attribute Details
#tags ⇒ Object
Returns the value of attribute tags.
13 14 15 |
# File 'lib/whale.rb', line 13 def @tags end |
Instance Method Details
#print ⇒ Object
19 20 21 |
# File 'lib/whale.rb', line 19 def print() puts "#{@tags[:line]}, #{@tags[:file]}: #{@tags[:title]}" end |