Method: CEML::Engine#expand
- Defined in:
- lib/ceml/engine.rb
#expand(role, var) ⇒ Object
74 75 76 77 78 79 80 81 82 83 |
# File 'lib/ceml/engine.rb', line 74 def (role, var) role = nil if role == 'otherguy' role = role.to_sym if role parts.each do |key, thing| next if key == @current_id next if role and not thing[:roles].include? role value = (thing[:qs_answers]||{})[var] and return value end nil end |