Class: EverExp::Note

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html.



6
7
8
# File 'lib/ever_exp/note.rb', line 6

def html
  @html
end

Instance Method Details

#<<(html_or_files) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/ever_exp/note.rb', line 24

def <<(html_or_files)
  if html_or_files.isHtml?
    @html = html_or_files
  else
    @files = html_or_files
  end
  html_or_files.note = self
end

#filesObject



12
13
14
# File 'lib/ever_exp/note.rb', line 12

def files
  @files || EverExp::WithoutFiles.instance
end

#tag_arrayObject



20
21
22
# File 'lib/ever_exp/note.rb', line 20

def tag_array
  html.tags_array
end

#tagsObject



16
17
18
# File 'lib/ever_exp/note.rb', line 16

def tags
  html.tags
end

#titleObject



8
9
10
# File 'lib/ever_exp/note.rb', line 8

def title
  html.title
end