This commit is contained in:
George Dietrich 2020-12-24 10:09:47 -05:00
parent 96fe9291e3
commit 67c17734cc

View file

@ -67,7 +67,7 @@ alias ANG = Athena::Negotiation
# accept.coding # => "gzip" # accept.coding # => "gzip"
# ``` # ```
# #
# The `ANG::EncodingNegotiator` type returns an `ANG::AcceptEncoding`, or `nil` if negotiating the best character set has failed. # The `ANG::EncodingNegotiator` type returns an `ANG::AcceptEncoding`, or `nil` if negotiating the best encoding has failed.
# #
# ### Language # ### Language
# #
@ -84,7 +84,7 @@ alias ANG = Athena::Negotiation
# accept.script # => "hans" # accept.script # => "hans"
# ``` # ```
# #
# The `ANG::LanguageNegotiator` type returns an `ANG::AcceptLanguage`, or `nil` if negotiating the best character set has failed. # The `ANG::LanguageNegotiator` type returns an `ANG::AcceptLanguage`, or `nil` if negotiating the best language has failed.
module Athena::Negotiation module Athena::Negotiation
# Returns a lazily initialized `ANG::Negotiator` singleton instance. # Returns a lazily initialized `ANG::Negotiator` singleton instance.
class_getter(negotiator) { ANG::Negotiator.new } class_getter(negotiator) { ANG::Negotiator.new }