Comments (8)
承知しました。取り急ぎ。
from pio.
今、rake yard:list_undocで確認したものの
ドキュメンテーションを進めています。
初歩的なことで大変申し訳ありませんが、
ドキュメントの粒度について、
1:コメントのみコメント
2:戻り値・引数・パラメータなどコメント
と分けようかと考えています。
new, read, to_binary、各フィールドにアクセスする際のメソッドなどを重点的に詳細に追記しておき、
内部でのみ利用しているメソッドなどは、コメント(or何も記載しない)のみ追記するような感じですといかがでしょうか。
無作法でしたら申し訳ございませんが、
何卒ご教授のほどお願いしたく存じます。
from pio.
はい、その方針でよいと思います。
private なメソッドはコメントは原則なしで OK です。
from pio.
承知しました。
ありがとうございます。
from pio.
最低限のドキュメントについては rubocop でチェックしているので、とりあえず Travis が通っていれば OK としましょう。
from pio.
承知しました。対応遅くて済みません。
from pio.
f7fd7c7 で inch というドキュメンテーション支援の gem を入れておきました。
inch
と打てばドキュメンテーションが必要そうなメソッドを列挙してくれます。inch show メソッド名
とすれば、具体的に何が足りないか教えてくれます。
$ inch show "Pio::Dhcp::FieldUtil#relay_agent_ip_address"
# Pio::Dhcp::FieldUtil#relay_agent_ip_address
┃ -> /Users/yasuhito/play/pio/lib/pio/dhcp/field_util.rb:79
┃ ---------------------------------------------------------
┃ Grade: U - Undocumented
┃ ---------------------------------------------------------
┃ + Add a comment describing the method
┃ + Add a code example (optional)
┃ + Describe what 'relay_agent_ip_address' returns
┃ + Describe what 'relay_agent_ip_address' returns
┃ ---------------------------------------------------------
詳しくは inch のドキュメントを参照してみてください。
from pio.
ありがとうございます。
承知しました!
from pio.
Related Issues (20)
- Pio::OpenFlow.read cannot parse Barrier messages.
- Add FlowStats::Request and FlowStats::Reply
- Add Table Stats Request/Reply message
- Add Port Stats Request/Reply message
- Add Queue Stats Request/Reply message
- Add Vendor Stats Request/Reply message HOT 5
- Features::Reply#dpid (#datapath_id) doesn't return an Integer
- " error: undefined method `key?' for nil:NilClass " のエラーの原因について HOT 14
- GotoTable.new(v) (v > OFPP_MAX) must raise an error.
- ParserのIPv6対応 HOT 7
- flow_modのデフォルトのmatch HOT 1
- パケットからMatchを生成するメソッド HOT 6
- the message #1 have → has
- OpenFlow 1.0 protocol
- Remove action Format classes
- OpenFlow 1.3 protocol
- Pio::DHCPの修正
- MultiPartメッセージについて HOT 1
- ARPのhardware_typeが1で決め打ちされてしまっている
- The doucument link is dead now
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pio.