lib/citeproc/abbreviate.rb in citeproc-0.0.8 vs lib/citeproc/abbreviate.rb in citeproc-0.0.9
- old
+ new
@@ -1,7 +1,5 @@
-require 'multi_json'
-
module CiteProc
module Abbreviate
attr_accessor :namespace
@@ -18,11 +16,10 @@
else
raise ArgumentError, "failed to set abbreviations from #{abbreviations.inspect}"
end
end
- # call-seq:
- # abbreviate(namespace = :default, context, word)
+ # @overload abbreviate(namespace = :default, context, word)
def abbreviate(*arguments)
raise ArgumentError, "wrong number of arguments (#{arguments.length} for 2..3)" unless (2..3).include?(arguments.length)
arguments.unshift(namespace || :default) if arguments.length < 3
@abbreviations.deep_fetch(*arguments)
end