Class: Mohawk::Accessors::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/mohawk/accessors/label.rb

Direct Known Subclasses

Link

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#viewObject (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

#valueObject



10
11
12
# File 'lib/mohawk/accessors/label.rb', line 10

def value
  @view.value
end