Class: GamePlay::Options::Helper
- Defined in:
- docs/4_Systems_105_Options.rb
Overview
Option helper allowing to work with a specific option (get next value, set it etc…)
Instance Attribute Summary collapse
-
#description ⇒ String
Option description.
-
#getter ⇒ Symbol
readonly
Option getter (on $options).
-
#name ⇒ String
Option name.
-
#setter ⇒ Symbol
readonly
Option setter (on $options).
-
#type ⇒ Symbol
readonly
Option type.
-
#values ⇒ Array
readonly
Option values.
-
#values_text ⇒ Array<String>, String
Option value text(s).
Instance Method Summary collapse
-
#current_value ⇒ Object
Retreive the current value.
-
#initialize(*args) ⇒ Helper
constructor
Create a new option.
-
#next_value ⇒ Object
Retreive the next value.
-
#prev_value ⇒ Object
Retreive the prev value.
-
#update_value(new_value)
Update the option value.
Constructor Details
#initialize(*args) ⇒ Helper
Create a new option
272 273 |
# File 'docs/4_Systems_105_Options.rb', line 272 def initialize(*args) end |
Instance Attribute Details
#description ⇒ String
Option description
263 264 265 |
# File 'docs/4_Systems_105_Options.rb', line 263 def description @description end |
#getter ⇒ Symbol (readonly)
Option getter (on $options)
266 267 268 |
# File 'docs/4_Systems_105_Options.rb', line 266 def getter @getter end |
#name ⇒ String
Option name
260 261 262 |
# File 'docs/4_Systems_105_Options.rb', line 260 def name @name end |
#setter ⇒ Symbol (readonly)
Option setter (on $options)
269 270 271 |
# File 'docs/4_Systems_105_Options.rb', line 269 def setter @setter end |
#type ⇒ Symbol (readonly)
Option type
251 252 253 |
# File 'docs/4_Systems_105_Options.rb', line 251 def type @type end |
#values ⇒ Array (readonly)
Option values
254 255 256 |
# File 'docs/4_Systems_105_Options.rb', line 254 def values @values end |
Instance Method Details
#current_value ⇒ Object
Retreive the current value
276 277 |
# File 'docs/4_Systems_105_Options.rb', line 276 def current_value end |
#next_value ⇒ Object
Retreive the next value
280 281 |
# File 'docs/4_Systems_105_Options.rb', line 280 def next_value end |
#prev_value ⇒ Object
Retreive the prev value
284 285 |
# File 'docs/4_Systems_105_Options.rb', line 284 def prev_value end |
#update_value(new_value)
Update the option value
288 289 |
# File 'docs/4_Systems_105_Options.rb', line 288 def update_value(new_value) end |