meisyal / staruml-ruby

A Ruby extension for StarUML.
https://staruml.io/extensions
MIT License
26 stars 1 forks source link

About interface #3

Closed meisyal closed 7 years ago

meisyal commented 7 years ago

An interface contains only public methods without implementation and possibly constants. In the future release, an interface will be generated as a module. For instance, there is an interface "Shape" contains a public abstract method "area():Float". It will be generated as follows:

module Shape
  def area
  end
end

Classes that implement that interface use include to realize interface.

meisyal commented 7 years ago

This feature implementation can be seen in 38bc5874416afcc68a7dfa3aa3c4529041c6d338.

meisyal commented 7 years ago

This feature has been included in release 0.1.6.