Module: Cukunity::UnityHelpers
- Extended by:
- Forwardable
- Defined in:
- lib/cukunity/cucumber/support/unity_helpers.rb
Instance Attribute Summary collapse
-
#current_component ⇒ Object
Returns the value of attribute current_component.
-
#current_gameobject ⇒ Object
Returns the value of attribute current_gameobject.
-
#current_object ⇒ Object
Returns the value of attribute current_object.
Instance Method Summary collapse
- #set_current_component(component) ⇒ Object
- #set_current_gameobject(gameobject) ⇒ Object
- #unity ⇒ Object
Instance Attribute Details
#current_component ⇒ Object
Returns the value of attribute current_component.
27 28 29 |
# File 'lib/cukunity/cucumber/support/unity_helpers.rb', line 27 def current_component @current_component end |
#current_gameobject ⇒ Object
Returns the value of attribute current_gameobject.
21 22 23 |
# File 'lib/cukunity/cucumber/support/unity_helpers.rb', line 21 def current_gameobject @current_gameobject end |
#current_object ⇒ Object
Returns the value of attribute current_object.
19 20 21 |
# File 'lib/cukunity/cucumber/support/unity_helpers.rb', line 19 def current_object @current_object end |
Instance Method Details
#set_current_component(component) ⇒ Object
28 29 30 31 |
# File 'lib/cukunity/cucumber/support/unity_helpers.rb', line 28 def set_current_component(component) self.current_object = component self.current_component = component end |
#set_current_gameobject(gameobject) ⇒ Object
22 23 24 25 |
# File 'lib/cukunity/cucumber/support/unity_helpers.rb', line 22 def set_current_gameobject(gameobject) self.current_object = gameobject self.current_gameobject = gameobject end |
#unity ⇒ Object
14 15 16 17 |
# File 'lib/cukunity/cucumber/support/unity_helpers.rb', line 14 def unity raise Exception::UnspecifiedPlatform.new if @platform.nil? @platform::Unity::Client.instance end |