rbexy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rbexy/component.rb +8 -8
- data/lib/rbexy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74a5c438dc97044fb901226d33d6354b01f8e9d5cf7cab0665b97cae6cab8c5b
|
4
|
+
data.tar.gz: ec1fd65332ff5830128aaf4db980018fd4834906c73032b1d533d29697cf84a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14f7b82c8322f3bd0720f289cc2bc5b9088b0d16bd81b9fd40414361512ef4aac9a048733f04d14aab7be7c846c94e311b3775c2f05fe5ee4f2511d44b6192eb
|
7
|
+
data.tar.gz: f4073f33ad17c9d3959d3cd73138c74c9340a94c430910c41ae980a97bcb422039b29b34c23285d9ff6e70f6980fb34efdddde8dc3a6f8159e96ed86d24b4b28
|
data/Gemfile.lock
CHANGED
data/lib/rbexy/component.rb
CHANGED
@@ -64,6 +64,14 @@ module Rbexy
|
|
64
64
|
raise(ContextNotFound, "no parent context `#{name}`")
|
65
65
|
end
|
66
66
|
|
67
|
+
def view_renderer
|
68
|
+
view_context.view_renderer
|
69
|
+
end
|
70
|
+
|
71
|
+
def component_name
|
72
|
+
self.class.name.underscore
|
73
|
+
end
|
74
|
+
|
67
75
|
private
|
68
76
|
|
69
77
|
attr_reader :view_context, :content_block, :old_lookup_context
|
@@ -88,14 +96,6 @@ module Rbexy
|
|
88
96
|
LookupContext.new(paths, LookupContext.details_hash(existing_context))
|
89
97
|
end
|
90
98
|
|
91
|
-
def view_renderer
|
92
|
-
view_context.view_renderer
|
93
|
-
end
|
94
|
-
|
95
|
-
def component_name
|
96
|
-
self.class.name.underscore
|
97
|
-
end
|
98
|
-
|
99
99
|
def method_missing(meth, *args, &block)
|
100
100
|
if view_context.respond_to?(meth)
|
101
101
|
view_context.send(meth, *args, &block)
|
data/lib/rbexy/version.rb
CHANGED