lib/mothership/inputs.rb in mothership-0.4.0 vs lib/mothership/inputs.rb in mothership-0.5.0

- old
+ new

@@ -13,14 +13,14 @@ @inputs = inputs @given = given @global = global end - def given?(name) + def has?(name) @inputs.key?(name) || @given.key?(name) end - def given(name) + def direct(name) if @inputs.key?(name) @inputs[name] elsif (given = @given[name]) != :interact given end