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