Class: ABI::Param

Inherits:
Object
  • Object
show all
Defined in:
lib/abidoc/model.rb

Instance Method Summary collapse

Instance Method Details

#docObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/abidoc/model.rb', line 4

def doc
  buf = ''
  if @internal_type && @internal_type != sig
    buf << "#{@internal_type} "
  else
    buf << "#{sig} "
  end
  buf <<  (@name ?  @name : '_')
  buf
end