class Opto::Resolvers::Variable
Find a value of another variable.
Hint should be a name of another variable
Public Instance Methods
resolve()
click to toggle source
# File lib/opto/resolvers/variable.rb, line 8 def resolve raise ArgumentError, "Variable name not set" if hint.nil? if option.group.nil? || option.group.option(hint).nil? raise RuntimeError, "Variable #{hint} not declared" end option.value_of(hint) end