lib/rio/grande.rb in rio-0.5.1 vs lib/rio/grande.rb in rio-0.6.0

- old
+ new

@@ -1,8 +1,8 @@ #-- # =========================================================================== -# Copyright (c) 2005-2012 Christopher Kleckner +# Copyright (c) 2005-2017 Christopher Kleckner # All rights reserved # # This file is part of the Rio library for ruby. # # Rio is free software; you can redistribute it and/or modify @@ -57,13 +57,11 @@ def _ss_returns_first? cx['line'] || cx['record'] || cx['row'] end def fixnumss(*args) - - #p args[0].class,ss_type?(_ss_keys()) ss_args = cx['ss_args'] = args - if ss_args.length == 1 and ss_args[0].kind_of?(Fixnum) and !cx.has_key?('dirlines') + if ss_args.length == 1 and ss_args[0].kind_of?(Integer) and !cx.has_key?('dirlines') ans = nil ss_type = ss_type?(_ss_keys()) if ss_args and ss_type ans = self.__send__(ss_type,*(ss_args)).to_a