Module: GraphQL::Schema::Member::HasDeprecationReason::ClassMethods
- Defined in:
- lib/graphql/schema/member/has_deprecation_reason.rb
Overview
-- @requires_ancestor: GraphQL::Schema::Member::HasDeprecationReason
Instance Method Summary collapse
-
#deprecation_reason(new_reason = NOT_CONFIGURED) ⇒ Object
: (?untyped new_reason) -> String?.
Instance Method Details
#deprecation_reason(new_reason = NOT_CONFIGURED) ⇒ Object
: (?untyped new_reason) -> String?
46 47 48 49 50 51 52 |
# File 'lib/graphql/schema/member/has_deprecation_reason.rb', line 46 def deprecation_reason(new_reason = NOT_CONFIGURED) if NOT_CONFIGURED.equal?(new_reason) super() else self.deprecation_reason = new_reason end end |