Class: Thing
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Thing
- Defined in:
- lib/vendor/plugins/rspec-rails/spec/resources/models/thing.rb,
lib/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
-
#initialize(arg = nil) ⇒ Thing
constructor
A new instance of Thing.
Methods included from Spec::Rails::Extensions::ActiveRecord::ClassMethods
Methods included from Resourceful::Serialize::Model
Methods included from Spec::Rails::Extensions::ActiveRecord::InstanceMethods
Constructor Details
#initialize(arg = nil) ⇒ Thing
Returns a new instance of Thing.
5 6 7 |
# File 'lib/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb', line 5 def initialize(arg=nil) @arg = arg || :default end |
Instance Attribute Details
#arg ⇒ Object (readonly)
Returns the value of attribute arg.
4 5 6 |
# File 'lib/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb', line 4 def arg @arg end |
Instance Method Details
#==(other) ⇒ Object
8 9 10 |
# File 'lib/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb', line 8 def ==(other) @arg == other.arg end |
#eql?(other) ⇒ Boolean
11 12 13 |
# File 'lib/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb', line 11 def eql?(other) @arg == other.arg end |