Method: Virtus::Attribute::DefaultValue::FromCallable#call

Defined in:
lib/virtus/attribute/default_value/from_callable.rb

#call(*args) ⇒ Object

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.

Evaluates the value via value#call

Parameters:

  • args (Object)

Returns:

  • (Object)

    evaluated value



28
29
30
# File 'lib/virtus/attribute/default_value/from_callable.rb', line 28

def call(*args)
  @value.call(*args)
end