Class: RDialogy::MixedGauge

Inherits:
Base
  • Object
show all
Defined in:
lib/rdialogy/mixedgauge.rb

Class Method Summary collapse

Methods inherited from Base

run

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(options={})
  options[:percent] ||= 0
  options[:items] ||= []
  super + [options[:percent].to_i] + options[:items].map{|e| [e.tag, e.item] }.flatten
end

.commandObject



27
28
29
# File 'lib/rdialogy/mixedgauge.rb', line 27

def self.command
  'mixedgauge'
end