Class: Transpec::Syntax::OnelinerShould::OnelinerShouldHaveRecord
- Inherits:
-
Have::HaveRecord
- Object
- Record
- Have::HaveRecord
- Transpec::Syntax::OnelinerShould::OnelinerShouldHaveRecord
- Defined in:
- lib/transpec/syntax/oneliner_should.rb
Constant Summary
Constants inherited from Record
Record::OVERRIDDE_FORBIDDEN_METHODS
Instance Attribute Summary collapse
-
#negative_form_of_to ⇒ Object
readonly
Returns the value of attribute negative_form_of_to.
-
#should ⇒ Object
readonly
Returns the value of attribute should.
Attributes inherited from Have::HaveRecord
Attributes inherited from Record
#annotation, #converted_syntax_type, #original_syntax_type
Instance Method Summary collapse
-
#initialize(should, have, negative_form_of_to = nil) ⇒ OnelinerShouldHaveRecord
constructor
A new instance of OnelinerShouldHaveRecord.
Methods inherited from Have::HaveRecord
Methods inherited from Record
#==, #converted_syntax, #hash, #original_syntax, #to_s
Constructor Details
#initialize(should, have, negative_form_of_to = nil) ⇒ OnelinerShouldHaveRecord
Returns a new instance of OnelinerShouldHaveRecord.
166 167 168 169 170 |
# File 'lib/transpec/syntax/oneliner_should.rb', line 166 def initialize(should, have, negative_form_of_to = nil) super(have) @should = should @negative_form_of_to = negative_form_of_to end |
Instance Attribute Details
#negative_form_of_to ⇒ Object (readonly)
Returns the value of attribute negative_form_of_to.
164 165 166 |
# File 'lib/transpec/syntax/oneliner_should.rb', line 164 def negative_form_of_to @negative_form_of_to end |
#should ⇒ Object (readonly)
Returns the value of attribute should.
164 165 166 |
# File 'lib/transpec/syntax/oneliner_should.rb', line 164 def should @should end |