eezee_regexes 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eezee_regexes/liquidify_regex_rules.rb +7 -2
- data/lib/eezee_regexes/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: de97a17cacc5e295ef313ef6d620d3b482de38b2a28d93da1cdcbf69ef0d377d
|
4
|
+
data.tar.gz: 14361868514df36318c47293fedda5f2186c436108e530dafb196186865754e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dd7103e03cca5cce042296035b8844cc82272dc3cc6b949303e5be016ce186a458e58c1fd5517259745e36333fbd6d822fafc27c5bbf51e362969275b7c9b86
|
7
|
+
data.tar.gz: c8a1d6e568186d7645fe0a7eda0e09cbf0c083be82e3ca51aed2f1a0b0c368cdb1e6d0fc70d78dc273747a86b609337818702101bbbda41f7583bbf1b9d0e204
|
@@ -2,8 +2,13 @@
|
|
2
2
|
class RegexRulesCollector
|
3
3
|
attr_accessor :ast
|
4
4
|
|
5
|
-
def initialize
|
6
|
-
|
5
|
+
def initialize(input = nil)
|
6
|
+
|
7
|
+
if input
|
8
|
+
self.ast = RubyVM::AbstractSyntaxTree.parse_file(regex_rule_file)
|
9
|
+
else
|
10
|
+
self.ast = RubyVM::AbstractSyntaxTree.parse(input)
|
11
|
+
end
|
7
12
|
end
|
8
13
|
|
9
14
|
def regex_rule_file
|