Class: Spectro::Spec
- Inherits:
-
Object
- Object
- Spectro::Spec
- Defined in:
- lib/spectro/spec.rb,
lib/spectro/spec/rule.rb,
lib/spectro/spec/parser.rb,
lib/spectro/spec/signature.rb
Defined Under Namespace
Classes: Parser, Rule, Signature
Instance Attribute Summary collapse
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#rules ⇒ Object
Returns the value of attribute rules.
-
#signature ⇒ Object
Returns the value of attribute signature.
Instance Method Summary collapse
- #==(spec) ⇒ Object
-
#initialize(md5, signature, rules) ⇒ Spec
constructor
A new instance of Spec.
Constructor Details
#initialize(md5, signature, rules) ⇒ Spec
Returns a new instance of Spec.
14 15 16 17 18 |
# File 'lib/spectro/spec.rb', line 14 def initialize md5, signature, rules self.md5 = md5 self.rules = rules self.signature = signature end |
Instance Attribute Details
#md5 ⇒ Object
Returns the value of attribute md5.
9 10 11 |
# File 'lib/spectro/spec.rb', line 9 def md5 @md5 end |
#rules ⇒ Object
Returns the value of attribute rules.
9 10 11 |
# File 'lib/spectro/spec.rb', line 9 def rules @rules end |
#signature ⇒ Object
Returns the value of attribute signature.
9 10 11 |
# File 'lib/spectro/spec.rb', line 9 def signature @signature end |
Instance Method Details
#==(spec) ⇒ Object
20 21 22 23 24 |
# File 'lib/spectro/spec.rb', line 20 def == spec return \ self.signature == spec.signature && \ self.rules == spec.rules end |