weskit 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -1
- data/examples/formatter.rb +2 -5
- data/lib/weskit/version.rb +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -2,7 +2,8 @@ Weskit [![Build Status](https://secure.travis-ci.org/f6p/weskit.png?branch=maste
|
|
2
2
|
====================================================================================================================
|
3
3
|
|
4
4
|
Weskit gem consists of tools for interaction with Wesnoth Markup Langage and Wesnoth infrastructure.
|
5
|
-
For more documentation check out
|
5
|
+
For more documentation check out ri pages and examples directory. Production code that
|
6
|
+
utilizes weskit capabilites can be found inside Ladder8 sources.
|
6
7
|
|
7
8
|
#### Modules
|
8
9
|
|
data/examples/formatter.rb
CHANGED
@@ -6,19 +6,16 @@ include Weskit::WML
|
|
6
6
|
# Compared to builder example this one uses more
|
7
7
|
# conservative approach to WML creation process.
|
8
8
|
|
9
|
-
root = Root.new
|
10
|
-
|
11
9
|
object = Element.new :object
|
12
10
|
object << Attribute.new(:name, 'orb')
|
13
11
|
object << Attribute.new(:type, 'magic item')
|
14
12
|
|
15
|
-
|
13
|
+
modification = Element.new :modification
|
16
14
|
modification << Attribute.new(:hp, 100)
|
17
15
|
|
18
16
|
object << modification
|
19
|
-
root << object
|
20
17
|
|
21
18
|
# Set differend formatter globally.
|
22
19
|
Formatter.default = Formatter.color
|
23
20
|
|
24
|
-
puts
|
21
|
+
puts object.to_s
|
data/lib/weskit/version.rb
CHANGED