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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/little_wheels.rb +17 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c536038b0e89d24bb3987f5b78fe08ec31e60cef149c4883161f5d340935f1a
4
- data.tar.gz: a9c3f6cc3aac663909664e98ca31ad99c2c271f20dc1bddaf020a20a8678ce39
3
+ metadata.gz: 15f8c91aaa4b8c6f0f63cd018d80ac333125cd8136523ba34e878ecbab113622
4
+ data.tar.gz: 335d6c93cc8a39282c87e88c073e738a8f19da66a8ba5865305e63eff606be1c
5
5
  SHA512:
6
- metadata.gz: 100731dd462f19ac92f5d6e041ca5124db45dc955e3c398e24fcd263ed1338f10c16b3155dc3787dde4d3a37248afc74fc08be9ec04fa00b11b86d2ecd3a13a7
7
- data.tar.gz: 10aadcf83c7dad25b31add6571d7255eb09690207bdeb5bb5f1e1c5c712ab17a42697e51c232a5f6a4274ee66e669dc0aa90832e7c642cab305013dca33b17c5
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.1
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