lib/yard/handlers/ruby/legacy/base.rb in yard-0.2.3.5 vs lib/yard/handlers/ruby/legacy/base.rb in yard-0.4.0
- old
+ new
@@ -47,11 +47,11 @@
#
# @param [Token] token The token of the class
#
# @param [Array<Class<Token>>, Symbol] accepted_types
# The allowed token types that this token can be. Defaults to [{TkVal}].
- # A list of types would be, for example, [{TkSTRING}, {TkSYMBOL}], to return
+ # A list of types would be, for example, [+TkSTRING+, +TkSYMBOL+], to return
# the token's value if it is either of those types. If +TkVal+ is accepted,
# +TkNode+ is also accepted.
#
# Certain symbol keys are allowed to specify multiple types in one fell swoop.
# These symbols are:
@@ -114,10 +114,10 @@
#
# Example:
# attr_accessor :a, 'b', :c, :d => ['a', 'b', 'c', 'd']
# attr_accessor 'a', UNACCEPTED_TYPE, 'c' => ['a', 'c']
#
- # The tokval list of a {TokenList} of the above
+ # The tokval list of a {Parser::Ruby::Legacy::TokenList} of the above
# code would be the {#tokval} value of :a, 'b',
# :c and :d.
#
# It should also be noted that this function stops immediately at
# any ruby keyword encountered:
\ No newline at end of file