Class: GlyDevKit::GlyTouCan

Inherits:
Object
  • Object
show all
Defined in:
lib/glydevkit/gly_tou_can.rb

Instance Method Summary collapse

Instance Method Details

#archetype(w) ⇒ Hash

Converts a WURCS string to its archetype representation.

Examples:

require glydevkit
glytoucan = GlyDevKit::GlyTouCan.new
archetype = glytoucan.archetype("WURCS=2.0/...")

Parameters:

  • w (String)

    The WURCS string.

Returns:

  • (Hash)

    The archetype representation of the WURCS string.



22
23
24
25
# File 'lib/glydevkit/gly_tou_can.rb', line 22

def archetype(w)
  result = Archetype.beBorn(w)
  Hash[result.get_map_result]
end