lib/dnote.rb in dnote-1.0 vs lib/dnote.rb in dnote-1.1
- old
+ new
@@ -1,12 +1,32 @@
-require 'dnote/notes'
-
module DNote
- VERSION = "1.0" #:till: VERSION = "<%= version %>"
+ VERSION = "1.1" #:till: VERSION = "<%= version %>"
- def self.new(*args)
- Notes.new(*args)
- end
+ require 'dnote/notes'
+
+ # NOTE: Toying with the idea of making DNote a class.
+
+ #attr :notes
+ #
+ #def initialize(paths, options={})
+ # labels = options[:labels] || options['labels']
+ # @notes = Notes.new(paths, labels)
+ #end
+ #
+ #
+ #def save(format, output, options)
+ # options = options.merge({ :format=>format, :output=>output })
+ # format = Format.new(notes, options)
+ # format.render
+ #end
+ #
+ #
+ #def display(format, options)
+ # options = options.merge({ :format=>format, :output=>nil })
+ # format = Format.new(@notes, options)
+ # format.render
+ #end
+
end
-# TEST: This is a test of arbitraty note labels.
+# TEST: This is a test of arbitraty labels.