inline_templates 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inline_templates/buffer_wrapper.rb +5 -1
- data/lib/inline_templates/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37edba5533b3f50ef02c284d351c0c30c91a8956
|
4
|
+
data.tar.gz: 0b9900b7d7c207ba0db0b300ec4c68aa77e9cc2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aebdef1aab1a2f7069f5b3abe2cf9c4a9de962305baef2f7db675c8df820f3fcc6c7dccdd505a0aaec270eec82e3b921f0b60d41d6305823c4adbeae1aa9ced6
|
7
|
+
data.tar.gz: e0d13dbc6a3fcb33b765e983d57adb8968908368608ab65cf7d069b83c4b55ac262ba4aec56b63ce0fef56d3f81d06665e344be73762f7d1575cd117dc3de362
|
@@ -18,7 +18,11 @@ module InlineTemplates
|
|
18
18
|
args.map! &BufferWrapper.method(:unwrap)
|
19
19
|
block = BufferWrapper.create_proxy_proc(block, @buffer) unless block.nil?
|
20
20
|
|
21
|
-
|
21
|
+
result = @object.__send__(name, *args, &block)
|
22
|
+
|
23
|
+
return result if name.to_s == "to_str"
|
24
|
+
|
25
|
+
BufferWrapper.wrap result, @buffer
|
22
26
|
end
|
23
27
|
|
24
28
|
def respond_to_missing?(name, include_private = false)
|