Sha256: 2126153763e5334fe4c700ae6e0e5bd199ec1fc25207ec284e4f3abc21f41d0f
Contents?: true
Size: 449 Bytes
Versions: 6
Compression:
Stored size: 449 Bytes
Contents
require 'rubygems' require 'weskit' include Weskit::WML unit = Root.new.build do unit do id 123 name 'Joe' type :spearman weapon do name :spear damage 10 description 'This is the weapon spearman usually uses.', :translatable => true end end end # Beware of fact that puts unit calls unit.to_ary instead of unit.to_str # so alwas use explicit conversion if you want string representation. puts unit.to_s
Version data entries
6 entries across 6 versions & 1 rubygems