Class: CukeSniffer::Rule

Inherits:
Object
  • Object
show all
Includes:
ROXML
Defined in:
lib/cuke_sniffer/rule.rb

Overview

Author

Robert Cochran ([email protected])

Copyright

Copyright © 2014 Robert Cochran

License

Distributes under the MIT License

Single Rule object used for passing around rule data and serializing out to xml Mixins: ROXML

Instance Method Summary collapse

Constructor Details

#initializeRule

Returns a new instance of Rule.



18
19
20
21
22
23
24
25
# File 'lib/cuke_sniffer/rule.rb', line 18

def initialize
  @enabled = false
  @phrase = ""
  @score = 0
  @conditions = {}
  @targets = []
  @reason = ""
end