Sha256: 817c939ed7bd9b4b5523fe1a3dd70404b86c6465b1dc2e90f25532cdd36d76da
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
module Mohawk module Accessors class Tabs attr_reader :view def initialize(adapter, locator) @view = adapter.window.tab_control(locator) end def value view.value end def selected_tab=(which) case which when String view.set(which) when Regexp view.set items.find {|t| t.match which } else view.select(which) end end def items @view.items.map(&:text) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems