Class: Fabrique::Test::Fixtures::OpenGL::Object
- Inherits:
-
Object
- Object
- Fabrique::Test::Fixtures::OpenGL::Object
- Defined in:
- lib/fabrique/test/fixtures/opengl.rb
Instance Attribute Summary collapse
-
#mesh ⇒ Object
readonly
Returns the value of attribute mesh.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
-
#shader ⇒ Object
readonly
Returns the value of attribute shader.
Instance Method Summary collapse
-
#initialize(shader, physical = {}) ⇒ Object
constructor
A new instance of Object.
Constructor Details
#initialize(shader, physical = {}) ⇒ Object
Returns a new instance of Object.
13 14 15 16 17 |
# File 'lib/fabrique/test/fixtures/opengl.rb', line 13 def initialize(shader, physical = {}) @shader = shader @mesh = physical[:mesh] @scale = physical[:scale] end |
Instance Attribute Details
#mesh ⇒ Object (readonly)
Returns the value of attribute mesh.
11 12 13 |
# File 'lib/fabrique/test/fixtures/opengl.rb', line 11 def mesh @mesh end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
11 12 13 |
# File 'lib/fabrique/test/fixtures/opengl.rb', line 11 def scale @scale end |
#shader ⇒ Object (readonly)
Returns the value of attribute shader.
11 12 13 |
# File 'lib/fabrique/test/fixtures/opengl.rb', line 11 def shader @shader end |