Method: Figroll::Storage#fetch

Defined in:
lib/figroll/storage.rb

#fetch(key) ⇒ String

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.

Given a key, retrieve the value stored for that key.

Parameters:

  • key (String, Symbol)

    the variable for which we want a value

Returns:

  • (String)

    the value of that variable

Raises:

  • (RuntimeError)

    if the varible is not known



22
23
24
# File 'lib/figroll/storage.rb', line 22

def fetch(key)
  @vars.fetch(Util.normalize(key))
end