Method: Virtus::Attribute::DefaultValue::FromCallable.handle?
- Defined in:
- lib/virtus/attribute/default_value/from_callable.rb
.handle?(value) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return if the class can handle the value
17 18 19 |
# File 'lib/virtus/attribute/default_value/from_callable.rb', line 17 def self.handle?(value) value.respond_to?(:call) end |