lib/sapluuna/context.rb in sapluuna-0.1.5 vs lib/sapluuna/context.rb in sapluuna-0.1.6
- old
+ new
@@ -71,12 +71,12 @@
def method_missing method, *args
if Array === args.first
value = args.first.last
case args.first.first
when :is
- @variables[method] = value
+ @variables[method] = value unless @variables[method]
when :are
- @variables[method] = value.to_s.strip.split(/\s+/)
+ @variables[method] = value.to_s.strip.split(/\s+/) unless @variables[method]
end
""
elsif @variables[method]
@variables[method]
else