Class: ABI::Event

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

Instance Method Summary collapse

Instance Method Details

#docObject



53
54
55
56
57
58
59
60
61
62
63
# File 'lib/abidoc/model.rb', line 53

def doc
  ## note: text with markdown formatting
  buf = "event **#{@name}**"
  if @inputs.empty?
    buf << "()"
  else
    params = @inputs.map {|param| param.doc }
    buf << "(#{params.join(', ')})"
  end
  buf
end