playerconnect-wsdsl 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/wsdsl.rb +12 -0
- data/playerconnect-wsdsl.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/wsdsl.rb
CHANGED
@@ -146,6 +146,18 @@ class WSDSL
|
|
146
146
|
@extra = {}
|
147
147
|
@content_type = nil
|
148
148
|
end
|
149
|
+
|
150
|
+
def self.partials
|
151
|
+
@partials ||= {}
|
152
|
+
end
|
153
|
+
|
154
|
+
def self.define_partial(name, &block)
|
155
|
+
partials[name] = block
|
156
|
+
end
|
157
|
+
|
158
|
+
def self.partial(name, args)
|
159
|
+
partials[name].call(args) if(partials.has_key?(name))
|
160
|
+
end
|
149
161
|
|
150
162
|
# Checks the WSDSL flag to see if the controller names are pluralized.
|
151
163
|
#
|
data/playerconnect-wsdsl.gemspec
CHANGED