ruht 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/Gemfile.lock +1 -1
- data/lib/ruht/fragment.rb +12 -0
- data/lib/ruht/version.rb +1 -1
- data/sig/ruht/fragment.rbs +3 -0
- data/sig/ruht/tags.rbs +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ece4fd78ad56b8ff0f6b00a8c0a22363144cd20997b55b8543f975cf8796f602
|
4
|
+
data.tar.gz: 13a3910f3870b83a720f8d337f374f7b6d1b4533246d13fe437586e1020a9a93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf681db394cc68422b782e87ae56b994446f2190d3e32e617717733fc59e2f1a4991cad0931a87d118cc354eeca4175de6f2c3164037debc9263cbaa0049bcc2
|
7
|
+
data.tar.gz: 8a46c0f1c586c92a89e99d11fcb458575d5a33d270b5048b72fbcd71d5e10133e59805500d11a0d0c6e22482ddde7a47ad81cee3bdea6796fd2ba0b1f9cb1dac
|
data/Gemfile.lock
CHANGED
data/lib/ruht/fragment.rb
CHANGED
@@ -48,5 +48,17 @@ module Ruht
|
|
48
48
|
object.is_a?(simple_class)
|
49
49
|
end
|
50
50
|
end
|
51
|
+
|
52
|
+
def method_missing(method_name, *args, &block)
|
53
|
+
return super unless respond_to_missing?(method_name, *args, &block)
|
54
|
+
|
55
|
+
@child_block.binding.receiver.send(method_name, *args, &block)
|
56
|
+
end
|
57
|
+
|
58
|
+
def respond_to_missing?(method_name, *args)
|
59
|
+
return false unless @child_block
|
60
|
+
|
61
|
+
@child_block.binding.receiver.respond_to?(method_name)
|
62
|
+
end
|
51
63
|
end
|
52
64
|
end
|
data/lib/ruht/version.rb
CHANGED
data/sig/ruht/fragment.rbs
CHANGED
data/sig/ruht/tags.rbs
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruht
|
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
|
- Dmitry Barskov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruht lets you generate HTML using Ruby syntax
|
14
14
|
email:
|