lib/vedeu/repositories/repositories/borders.rb in vedeu-0.4.17 vs lib/vedeu/repositories/repositories/borders.rb in vedeu-0.4.18
- old
+ new
@@ -11,24 +11,26 @@
def borders
@borders ||= reset!
end
alias_method :repository, :borders
+ # Remove all stored models from the repository.
+ #
# @return [Vedeu::Borders]
def reset!
@borders = Vedeu::Borders.register_repository(Vedeu::Border)
end
end
# @param name [String] The name of the stored border.
- # @return [Vedeu::Border|Vedeu::NullBorder]
+ # @return [Vedeu::Border|Vedeu::Null::Border]
def by_name(name)
if registered?(name)
find(name)
else
- Vedeu::NullBorder.new(name)
+ Vedeu::Null::Border.new(name)
end
end
end # Borders