Class: Spex::Check::Option
- Inherits:
-
Object
- Object
- Spex::Check::Option
- Defined in:
- lib/spex/check.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, description = nil, &block) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(name, description = nil, &block) ⇒ Option
Returns a new instance of Option.
87 88 89 90 |
# File 'lib/spex/check.rb', line 87 def initialize(name, description = nil, &block) @name = name @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
86 87 88 |
# File 'lib/spex/check.rb', line 86 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
86 87 88 |
# File 'lib/spex/check.rb', line 86 def name @name end |