lib/brief/repository.rb in brief-1.2.0 vs lib/brief/repository.rb in brief-1.3.0

- old
+ new

@@ -7,11 +7,11 @@ # should compare vs yield def each(*args, &block) documents.send(:each, *args, &block) end - def initialize(briefcase, options={}) + def initialize(briefcase, options = {}) @briefcase = briefcase @options = options load_documents end @@ -38,11 +38,11 @@ Brief::Document.new(path) end end def document_paths - Dir[root.join("**/*.md").to_s].map {|p| Pathname(p) } + Dir[root.join('**/*.md').to_s].map { |p| Pathname(p) } end def self.define_document_finder_methods # Create a finder method on the repository # which lets us find instances of models by their class name @@ -50,8 +50,7 @@ define_method(type.to_s.pluralize) do Brief::Model.for_type(type).models.to_a end end end - end end