Sha256: 3701d57f99116f5eeaf6feb92755bad0143a118337a2144fee20ba3e6a69a28c

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

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(features=nil)
    PowerTrack::Rule.new(self, features)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
powertrack-2.0.0 lib/powertrack/rules/string_extension.rb
powertrack-1.3.1 lib/powertrack/rules/string_extension.rb
powertrack-1.3.0 lib/powertrack/rules/string_extension.rb
powertrack-1.2.0 lib/powertrack/rules/string_extension.rb