Class: PodIdent::RuleParser
- Inherits:
-
Object
- Object
- PodIdent::RuleParser
- Defined in:
- lib/pod_ident/rule_parser.rb
Constant Summary collapse
- RULES_YAML =
File.('../detection_rules.yml', __dir__)
- RULES_BOTS_YAML =
File.('../detection_rules_bots.yml', __dir__)
- CUSTOM_RULES_BOTS_YAML =
File.('../detection_rules_custom_bots.yml', __dir__)
- RULES_RUBY =
File.('detection_rules.rb', __dir__)
- RULES_BOTS_RUBY =
File.('detection_rules_bots.rb', __dir__)
- CUSTOM_RULES_BOTS_RUBY =
File.('detection_rules_custom_bots.rb', __dir__)
- RULES_SPEC_RUBY =
File.('../../spec/detection_rules.rb', __dir__)
- RULES_SPEC_BOTS_RUBY =
File.('../../spec/detection_rules_bots.rb', __dir__)
- RULES_SPEC_CUSTOM_BOTS_RUBY =
File.('../../spec/detection_rules_custom_bots.rb', __dir__)
- DO_NOT_EDIT_TEXT =
<<~HEREDOC # DO NOT EDIT THIS FILE - it gets automatically generated by running \"bin/parse-rules\"\n HEREDOC
Instance Attribute Summary collapse
-
#bots_rules ⇒ Object
Returns the value of attribute bots_rules.
-
#custom_bots_rules ⇒ Object
Returns the value of attribute custom_bots_rules.
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
Instance Attribute Details
#bots_rules ⇒ Object
Returns the value of attribute bots_rules.
22 23 24 |
# File 'lib/pod_ident/rule_parser.rb', line 22 def bots_rules @bots_rules end |
#custom_bots_rules ⇒ Object
Returns the value of attribute custom_bots_rules.
22 23 24 |
# File 'lib/pod_ident/rule_parser.rb', line 22 def custom_bots_rules @custom_bots_rules end |
#rules ⇒ Object
Returns the value of attribute rules.
22 23 24 |
# File 'lib/pod_ident/rule_parser.rb', line 22 def rules @rules end |
Instance Method Details
#call ⇒ Object
24 25 26 27 28 |
# File 'lib/pod_ident/rule_parser.rb', line 24 def call parse_yaml write_rules_rb write_rules_spec_rb end |