class YARD::Tags::TypesExplainer::DuckType

@private

Public Instance Methods

to_s(singular = true) click to toggle source
# File lib/yard/tags/types_explainer.rb, line 67
def to_s(singular = true)
  (singular ? "an object that responds to " : "objects that respond to ") + list_join(name.split(/ *& */), with: "and")
end