Parent

Class/Module 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
def try_call(*args)
  if self.respond_to?(:call)
    self.call(*args)
  else
    self
  end
end
validatable?() click to toggle source
# File lib/dm-validations/support/object.rb, line 15
def validatable?
  false
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.