Parent

Class Index [+]

Quicksearch

Object

Public Instance Methods

try_call(*args) click to toggle source

If receiver is callable, calls it and returns result. If not, just returns receiver itself

@return [Object] @api private

    # File lib/dm-validations/support/object.rb, line 7
 7:   def try_call(*args)
 8:     if self.respond_to?(:call)
 9:       self.call(*args)
10:     else
11:       self
12:     end
13:   end
validatable?() click to toggle source
    # File lib/dm-validations/support/object.rb, line 15
15:   def validatable?
16:     false
17:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.