lib/nydp/symbol_lookup.rb in nydp-0.3.0 vs lib/nydp/symbol_lookup.rb in nydp-0.4.0
- old
+ new
@@ -3,19 +3,19 @@
module Nydp
class SymbolLookup
extend Helper
def self.skip_empty bindings
- while Nydp::NIL.isnt?(bindings) && bindings.car.empty?
+ while (NIL != bindings) && bindings.car.empty?
bindings = bindings.cdr
end
bindings
end
def self.build name, bindings
bindings = skip_empty bindings
depth = 0
- while Nydp::NIL.isnt? bindings
+ while NIL != bindings
here = bindings.car
if here.key? name
binding_index = here[name]
return ContextSymbol.build(depth, name, binding_index)
else