Method: RDoc::Parser::Ruby#parse_symbol_arg_paren
- Defined in:
- lib/rdoc/parser/ruby.rb
#parse_symbol_arg_paren(no) ⇒ Object
Parses up to no
symbol arguments surrounded by () and places them in args
.
1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 |
# File 'lib/rdoc/parser/ruby.rb', line 1941 def parse_symbol_arg_paren no # :nodoc: args = [] loop do skip_tkspace_comment if tk1 = parse_symbol_in_arg args.push tk1 break if no and args.size >= no end skip_tkspace_comment case (tk2 = get_tk)[:kind] when :on_rparen break when :on_comma else warn("unexpected token: '#{tk2.inspect}'") if $DEBUG_RDOC break end end args end |