Class: GG::DemoApp::Custom

Inherits:
Object show all
Defined in:
lib/gg/demo_app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shape, size, color) ⇒ Custom

Returns a new instance of Custom.



5
6
7
8
9
# File 'lib/gg/demo_app.rb', line 5

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

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



11
12
13
# File 'lib/gg/demo_app.rb', line 11

def color
  @color
end

#shapeObject (readonly)

Returns the value of attribute shape.



11
12
13
# File 'lib/gg/demo_app.rb', line 11

def shape
  @shape
end

#sizeObject (readonly)

Returns the value of attribute size.



11
12
13
# File 'lib/gg/demo_app.rb', line 11

def size
  @size
end