Class: Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/whale.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEntry

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

#tagsObject

Returns the value of attribute tags.



13
14
15
# File 'lib/whale.rb', line 13

def tags
  @tags
end

Instance Method Details



19
20
21
# File 'lib/whale.rb', line 19

def print()
  puts "#{@tags[:line]}, #{@tags[:file]}: #{@tags[:title]}"
end