Class: Spec::Expectations::Person
- Defined in:
- lib/vendor/plugins/rspec/spec/support/spec_classes.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name) ⇒ Person
constructor
A new instance of Person.
Constructor Details
#initialize(name) ⇒ Person
Returns a new instance of Person.
6 7 8 |
# File 'lib/vendor/plugins/rspec/spec/support/spec_classes.rb', line 6 def initialize name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/vendor/plugins/rspec/spec/support/spec_classes.rb', line 5 def name @name end |
Instance Method Details
#==(other) ⇒ Object
9 10 11 |
# File 'lib/vendor/plugins/rspec/spec/support/spec_classes.rb', line 9 def == other return @name == other.name end |