Sha256: 102a9042e656345e7a5ae995043a83bdf500a5c7b824885c57f9caea6b85f194
Contents?: true
Size: 468 Bytes
Versions: 5
Compression:
Stored size: 468 Bytes
Contents
require 'rubygems' require 'weskit' include Weskit::WML # Compared to builder example this one uses more # conservative approach to WML creation process. object = Element.new :object object << Attribute.new(:name, 'orb') object << Attribute.new(:type, 'magic item') modification = Element.new :modification modification << Attribute.new(:hp, 100) object << modification # Set differend formatter globally. Formatter.default = Formatter.color puts object.to_s
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
weskit-0.3.6 | examples/formatter.rb |
weskit-0.3.5 | examples/formatter.rb |
weskit-0.3.4 | examples/formatter.rb |
weskit-0.3.3 | examples/formatter.rb |
weskit-0.3.2 | examples/formatter.rb |