module Reasonable::Value::Try

Public Class Methods

call(method_name, object) click to toggle source
# File lib/reasonable/value.rb, line 126
def self.call(method_name, object)
  object.public_send(method_name) if object.respond_to?(method_name)
end