lib/knj/sysuser.rb in knjrbfw-0.0.7 vs lib/knj/sysuser.rb in knjrbfw-0.0.8
- old
+ new
@@ -19,9 +19,9 @@
return list
end
def [](key)
- raise "No such key: " + key if !@data.has_key?(key)
+ raise "No such key: " + key if !@data.key?(key)
return @data[key]
end
end
\ No newline at end of file