little_wheels 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/little_wheels.rb +17 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15f8c91aaa4b8c6f0f63cd018d80ac333125cd8136523ba34e878ecbab113622
|
4
|
+
data.tar.gz: 335d6c93cc8a39282c87e88c073e738a8f19da66a8ba5865305e63eff606be1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06edd97d1343dfd553a41cb5764045b7e660d494d431818abc9a2d0e90ff101106c130cb7663b9dbead60b998c401ca7540a329fcc1eb8771b2fc8e8b26370f9
|
7
|
+
data.tar.gz: 44559acb2c333912c72ec694a33caa3e2ffb9835e2e95b49bb5031723f8062bcfa81c1f1b3b914cd8c6af389279b2f92e2c7d8bd1063a7a9ea5e103f32ddd2d9
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module LittleWheels
|
2
|
+
VERSION = "0.0.2"
|
3
|
+
|
4
|
+
class Component
|
5
|
+
def t(template, **locals)
|
6
|
+
renderer.render(:inline => template, locals:)
|
7
|
+
end
|
8
|
+
|
9
|
+
def t!(template, **locals)
|
10
|
+
renderer.render(template, locals:)
|
11
|
+
end
|
12
|
+
|
13
|
+
def renderer
|
14
|
+
ApplicationController
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: little_wheels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Brown
|
@@ -18,6 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- LICENSE
|
21
|
+
- lib/little_wheels.rb
|
21
22
|
homepage:
|
22
23
|
licenses:
|
23
24
|
- MIT
|