Class: RDialogy::MixedGauge
Class Method Summary collapse
-
.args(options = {}) ⇒ Object
-
:items - An array of MenuItem objects.
-
- .command ⇒ Object
Methods inherited from Base
Class Method Details
.args(options = {}) ⇒ Object
-
:items - An array of MenuItem objects
21 22 23 24 25 |
# File 'lib/rdialogy/mixedgauge.rb', line 21 def self.args(={}) [:percent] ||= 0 [:items] ||= [] super + [[:percent].to_i] + [:items].map{|e| [e.tag, e.item] }.flatten end |
.command ⇒ Object
27 28 29 |
# File 'lib/rdialogy/mixedgauge.rb', line 27 def self.command 'mixedgauge' end |