Class: GG::DemoApp::Custom
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#shape ⇒ Object
readonly
Returns the value of attribute shape.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(shape, size, color) ⇒ Custom
constructor
A new instance of Custom.
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
#color ⇒ Object (readonly)
Returns the value of attribute color.
11 12 13 |
# File 'lib/gg/demo_app.rb', line 11 def color @color end |
#shape ⇒ Object (readonly)
Returns the value of attribute shape.
11 12 13 |
# File 'lib/gg/demo_app.rb', line 11 def shape @shape end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
11 12 13 |
# File 'lib/gg/demo_app.rb', line 11 def size @size end |