Method: RubyAnything::Windows#opt
- Defined in:
- lib/ruby-anything/windows.rb
#opt(window_type) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/ruby-anything/windows.rb', line 49 def opt(window_type) case window_type when :prompt { h: 1, w: prompt.size, y: 0, x: 0} when :text { h: 1, w: maxx - prompt.size, y: 0, x: 2 } when :items { h: maxy - 1, w: maxx, y: 1, x: 0 } else {} end end |