Class: Classbench::Rule
- Inherits:
-
Object
- Object
- Classbench::Rule
- Defined in:
- lib/classbench/rule.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(attrs) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(attrs) ⇒ Rule
Returns a new instance of Rule.
5 6 7 |
# File 'lib/classbench/rule.rb', line 5 def initialize(attrs) self.attributes = attrs end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/classbench/rule.rb', line 3 def attributes @attributes end |
Instance Method Details
#fields ⇒ Object
9 10 11 |
# File 'lib/classbench/rule.rb', line 9 def fields attributes.keys end |