RubyGems
npm
Organizations
Log in
Sign up
RubyGems
rexle-builder
Versions diffs
0.1.2 → 0.1.3
rexle-builder 0.1.2 → 0.1.3
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/rexle-builder.rb
+2
-1
metadata
+1
-1
data/lib/rexle-builder.rb
CHANGED
Viewed
@@ -14,7 +14,8 @@ class RexleBuilder
14
14
end
15
15
16
16
def method_missing(sym, *args)
17
-
a
=
[sym.to_s,
args.reverse
]
17
+
value,
attributes
= args.reverse
18
+
a = [sym.to_s, value || '', attributes || {}]
18
19
@current_a << a
19
20
if block_given? then
20
21
prev_a = @current_a
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: rexle-builder
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.1.
2
4
+
version: 0.1.
3
5
5
platform: ruby
6
6
authors: []
7
7