Class: Opto::Resolvers::Default

Inherits:
Opto::Resolver show all
Defined in:
lib/opto/resolvers/default.rb

Overview

Resolve a value through the default value defined during option initialization

Instance Attribute Summary

Attributes inherited from Opto::Resolver

#hint, #option

Instance Method Summary collapse

Methods inherited from Opto::Resolver

for, inherited, #initialize, origin, #origin, resolvers

Constructor Details

This class inherits a constructor from Opto::Resolver

Instance Method Details

#resolveObject


5
6
7
# File 'lib/opto/resolvers/default.rb', line 5

def resolve
  hint.default
end