Class: Fabrique::Test::Fixtures::Constructors::ClassWithKeywordArgumentConstructor
- Inherits:
-
ClassWithProperties
- Object
- ClassWithProperties
- Fabrique::Test::Fixtures::Constructors::ClassWithKeywordArgumentConstructor
- Defined in:
- lib/fabrique/test/fixtures/constructors.rb
Constant Summary
Constants inherited from ClassWithProperties
Fabrique::Test::Fixtures::Constructors::ClassWithProperties::DEFAULT_COLOR, Fabrique::Test::Fixtures::Constructors::ClassWithProperties::DEFAULT_SHAPE, Fabrique::Test::Fixtures::Constructors::ClassWithProperties::DEFAULT_SIZE
Instance Attribute Summary
Attributes inherited from ClassWithProperties
#color, #object, #shape, #size
Instance Method Summary collapse
-
#initialize(size: DEFAULT_SIZE, color: DEFAULT_COLOR, shape: DEFAULT_SHAPE) ⇒ ClassWithKeywordArgumentConstructor
constructor
A new instance of ClassWithKeywordArgumentConstructor.
Constructor Details
#initialize(size: DEFAULT_SIZE, color: DEFAULT_COLOR, shape: DEFAULT_SHAPE) ⇒ ClassWithKeywordArgumentConstructor
Returns a new instance of ClassWithKeywordArgumentConstructor.
58 59 60 |
# File 'lib/fabrique/test/fixtures/constructors.rb', line 58 def initialize(size: DEFAULT_SIZE, color: DEFAULT_COLOR, shape: DEFAULT_SHAPE) @size, @color, @shape = size, color, shape end |