Method: ContextProvider#get
- Defined in:
- lib/context_provider.rb
#get ⇒ Object
Gets value from provided by the context.
54 55 56 57 58 59 60 61 |
# File 'lib/context_provider.rb', line 54 def get unless value_provided? raise ContextNotProvidedError, 'Unable to get context value as it has not been defined!' end @provided.value end |