Ruby on Rails 3.0.7 を使用しており、RDoc を使用してアプリケーションのドキュメントを作成しています。私のアプリケーションファイルには次のものがあります:
#[EXAMPLE 1 - Some text.]
#
# [CASE 1 - Some text.]
#
# class User < ActiveRecord::Base
# has_many :account,
# :class_name => 'User::Account',
# :foreign_key => 'account_id'
# end
私のアプリケーションのドキュメントを生成すると、上記のコメント付きのコードは、それらが表示されるはずの段落ブロックの外に出class User < ActiveRecord::Base
てしまいます。end
以下は、関連するスクリーン ショットです。
どうすれば解決できますか?
これを使用すると、同じ出力(クラスステートメントが表示される段落ブロックの外側)が得られます
#[Example 1 - Some text.]
#
# class User < ActiveRecord::Base
# has_many :account,
# :class_name => 'User::Account',
# :foreign_key => 'account_id'
# end
またはこれ
#class User < ActiveRecord::Base
# has_many :account,
# :class_name => 'User::Account',
# :foreign_key => 'account_id'
#end