Class: Mohawk::Accessors::Radio
- Inherits:
-
Object
- Object
- Mohawk::Accessors::Radio
- Defined in:
- lib/mohawk/accessors/radio.rb
Instance Attribute Summary collapse
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(adapter, locator) ⇒ Radio
constructor
A new instance of Radio.
- #set ⇒ Object
- #set? ⇒ Boolean
Constructor Details
#initialize(adapter, locator) ⇒ Radio
Returns a new instance of Radio.
6 7 8 |
# File 'lib/mohawk/accessors/radio.rb', line 6 def initialize(adapter, locator) @view = adapter.window.radio(locator) end |
Instance Attribute Details
#view ⇒ Object (readonly)
Returns the value of attribute view.
4 5 6 |
# File 'lib/mohawk/accessors/radio.rb', line 4 def view @view end |
Instance Method Details
#set ⇒ Object
10 11 12 |
# File 'lib/mohawk/accessors/radio.rb', line 10 def set @view.set end |
#set? ⇒ Boolean
14 15 16 |
# File 'lib/mohawk/accessors/radio.rb', line 14 def set? @view.set? end |