Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/powertrack/rules/string_extension.rb
Overview
Extend core String class with a rule transformer
Instance Method Summary collapse
-
#to_pwtk_rule(features = nil) ⇒ Object
Returns a PowerTrace::Rule instance based on the value of the string.
Instance Method Details
#to_pwtk_rule(features = nil) ⇒ Object
Returns a PowerTrace::Rule instance based on the value of the string.
6 7 8 |
# File 'lib/powertrack/rules/string_extension.rb', line 6 def to_pwtk_rule(features=nil) PowerTrack::Rule.new(self, features) end |