Class: ABI::Constructor
- Inherits:
-
Object
- Object
- ABI::Constructor
- Defined in:
- lib/abidoc/model.rb
Instance Method Summary collapse
Instance Method Details
#doc ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/abidoc/model.rb', line 18 def doc buf = "constructor" if @inputs.empty? buf << "()" else params = @inputs.map {|param| param.doc } buf << "(#{params.join(', ')})" end buf end |