Feature #170

演算子のsignatureがわかりにくい

Added by Yutaka HARA over 3 years ago. Updated 9 months ago.

[ruby-reference-manual:946]
Status:Closed Start date:06/16/2008
Priority:Normal Due date:
Assignee:Minero Aoki % Done:

0%

Category:bitclust
Target version:-
reporter:yhara ruby_version:

Description

#この前のRuby勉強会@松江で新リファレンスに寄せられた様々な方からの意見を、チケットに反映したいと思います。
http://matsuesns.jp/bbs/bbs_list.php?root_key=1773&bbs_id=80&res=1213410319

----

2.*(3)とか普通書かないので、

> *(other) -> Fixnum | Bignum | Float

ではなく

> self * other -> Fixnum | Bignum | Float

のように書いた方がわかりやすい。

----

htmlを生成するときにこのような変換をすればいいのかな。

Associated revisions

Revision 3008
Added by aamine over 3 years ago

* lib/bitclust/methodsignature.rb: new class MethodSignature, which represents RRD method signature line ("--- m(param) {...} -> type"). * lib/bitclust/screen.rb (foreach_method_chunk): yields a MethodSignature to the template. * lib/bitclust/rdcompiler.rb (method_signature): show method signature in user-friendly form ("x + y" rather than "+(y)"). (refs #170) * template/class: ditto. * lib/bitclust/rdcompiler.rb (method_signature): makes the whole signature a hyperlink. (refs #188) * template/class: ditto. * template/search: ditto. * tools/check-signature.rb: a new tool to check method signature format.

History

Updated by Minero Aoki over 3 years ago

  • Status changed from Open to Closed
  • Assignee set to Minero Aoki
「x + y」形式で表示されるよう、r3008で変更しました。

Also available in: Atom PDF