Sha256: 580db7d86bce39a7da3e5c3ed30dd7e82ea34c40537b4f02ca51a518bced19ef
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
module Furter module Accessors class Switch < View include Furter def on? frankly_map(selector, 'isOn')[0] end def set(on_or_off) tap_and_hold_for 0.1 if on_or_off != on? end private def view_class "view:\"UISwitch\"" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
furter-0.0.3.3 | lib/furter/accessors/switch.rb |