Sha256: 08a46ec7574acb4784d0da694e160ce369bef886b90c2651cdb39edea5343797

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
      html.tags_array
    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.3 lib/ever_exp/note.rb
ever_exp-0.1.2 lib/ever_exp/note.rb