Method: YARD::Verifier#call

Defined in:
lib/yard/verifier.rb

#call(object) ⇒ Boolean

Note:

If the object is a CodeObjects::Proxy the result will always be true.

Tests the expressions on the object.

Parameters:

Returns:

  • (Boolean)

    the result of the expressions



76
77
78
79
80
81
82
83
# File 'lib/yard/verifier.rb', line 76

def call(object)
  return true if object.is_a?(CodeObjects::Proxy)
  modify_nilclass
  @object = object
  retval = __execute ? true : false
  unmodify_nilclass
  retval
end