Skip to content

(NoMethodError) undefined method `last' for nil:NilClass caused by :markup: directive #262

@bhenderson

Description

@bhenderson

sorry if this is a dup. I tried looking for other issues.

$ rdoc --version
rdoc 4.0.1
$ cat /tmp/ruby.rb

# :markup: RDoc
class Foo

  ##
  # Cool method

  def cool() end

end

$ rdoc /tmp/ruby.rb --debug # filtered

The internal error was:

        (NoMethodError) undefined method `last' for nil:NilClass

/home/bhenderson/.multiruby/install/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rdoc-4.0.1/lib/rdoc/parser.rb:273:in `use_markup'

the docs say this should be valid

https://github.com/rdoc/rdoc/blob/master/lib/rdoc/markup.rb#L706

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions