method
scan_open_optional_arguments
v2_6_3 -
Show latest stable
- Class:
OpenURI
scan_open_optional_arguments(*rest)public
No documentation available.
# File lib/open-uri.rb, line 130
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