Feature #170 [ruby-reference-manual:946]

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

Added by Yutaka HARA 383 days ago. Updated 325 days ago.

Status :Closed Start :06/16/2008
Priority :Normal Due date :
Assigned to :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 325 days 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

08/13/2008 02:15 PM - Minero Aoki

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

Also available in: Atom PDF