Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/powertrack/rules/string_extension.rb

Overview

Extend core String class with a rule transformer

Instance Method Summary collapse

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