Class: RDialogy::Menu
Class Method Summary collapse
Class Method Details
.args(options = {}) ⇒ Object
16 17 18 19 20 |
# File 'lib/rdialogy/menu.rb', line 16 def self.args(={}) [:items] ||= [] [:list_height] ||= [:items].count super + [[:list_height]] + [:items].map{|e| [e.tag, e.item] }.flatten end |
.command ⇒ Object
12 13 14 |
# File 'lib/rdialogy/menu.rb', line 12 def self.command 'menu' end |
.run(options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/rdialogy/menu.rb', line 6 def self.run(={}) super , true do |input| input.chomp end end |