lib/powertrack/rules/string_extension.rb in powertrack-1.1.1 vs lib/powertrack/rules/string_extension.rb in powertrack-1.2.0
- old
+ new
@@ -1,9 +1,9 @@
require 'powertrack/rules/rule'
# Extend core String class with a rule transformer
class String
# Returns a PowerTrace::Rule instance based on the value of the string.
- def to_pwtk_rule(tag=nil, long=nil)
- PowerTrack::Rule.new(self, tag, long)
+ def to_pwtk_rule(features=nil)
+ PowerTrack::Rule.new(self, features)
end
end