Represents default value evaluated via a symbol
@api private
Evaluates the value via instancepublic_send(value)
Symbol value is returned if the instance doesn’t respond to value
@return [Object] evaluated value
@api private
# File lib/virtus/attribute/default_value/from_symbol.rb, line 28 def call(instance, _) instance.respond_to?(@value, true) ? instance.send(@value) : @value end
Generated with the Darkfish Rdoc Generator 2.