method
scan_open_optional_arguments
v1_8_7_72 -
Show latest stable
- Class:
OpenURI
scan_open_optional_arguments(*rest)public
No documentation available.
# File lib/open-uri.rb, line 108
def OpenURI.scan_open_optional_arguments(*rest) # :nodoc:
if !rest.empty? && (String === rest.first || Integer === rest.first)
mode = rest.shift
if !rest.empty? && Integer === rest.first
perm = rest.shift
end
end
return mode, perm, rest
end