Class: Fabrique::Test::Fixtures::Constructors::ClassWithPositionalArgumentConstructor

Inherits:
ClassWithProperties
  • Object
show all
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

Constructor Details

#initialize(size, color, shape) ⇒ ClassWithPositionalArgumentConstructor

Returns a new instance of ClassWithPositionalArgumentConstructor.



50
51
52
# File 'lib/fabrique/test/fixtures/constructors.rb', line 50

def initialize(size, color, shape)
  @size, @color, @shape = size, color, shape
end