Sha256: bd864337a3d84425d5144c8d3bb409552c2582666a27585b8ff2eaf6e1145692
Contents?: true
Size: 472 Bytes
Versions: 2
Compression:
Stored size: 472 Bytes
Contents
require 'ever_exp/without_files' module EverExp class Note attr_reader :html def title html.title end def files @files || EverExp::WithoutFiles.instance end def tags html.tags end def tag_array tags.split ', ' end 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ever_exp-0.1.1 | lib/ever_exp/note.rb |
ever_exp-0.1.0 | lib/ever_exp/note.rb |