Class: Sapphire::DSL::Coverage::Behavior
- Defined in:
- lib/sapphire/DSL/Coverage/Behavior.rb
Instance Attribute Summary collapse
-
#covered_by ⇒ Object
Returns the value of attribute covered_by.
-
#is_covered ⇒ Object
Returns the value of attribute is_covered.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(token, hash) ⇒ Behavior
constructor
A new instance of Behavior.
Constructor Details
#initialize(token, hash) ⇒ Behavior
Returns a new instance of Behavior.
15 16 17 18 |
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 15 def initialize(token, hash) @token = token @type = hash[hash.keys.first] end |
Instance Attribute Details
#covered_by ⇒ Object
Returns the value of attribute covered_by.
13 14 15 |
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 13 def covered_by @covered_by end |
#is_covered ⇒ Object
Returns the value of attribute is_covered.
12 13 14 |
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 12 def is_covered @is_covered end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
10 11 12 |
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 10 def token @token end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 11 def type @type end |