Class: SK::KElement

Inherits:
Object
  • Object
show all
Defined in:
lib/kendo.rb

Direct Known Subclasses

KCell, KGrid, KRow

Instance Method Summary collapse

Constructor Details

#initialize(el) ⇒ KElement

Returns a new instance of KElement.



3
4
5
# File 'lib/kendo.rb', line 3

def initialize(el)
  @element = el
end

Instance Method Details

#elObject



7
8
9
# File 'lib/kendo.rb', line 7

def el
  @element
end

#exists?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/kendo.rb', line 11

def exists?
  !!el
end

#htmlObject



20
21
22
23
# File 'lib/kendo.rb', line 20

def html
  # useful to see for debugging
  self.el.attribute('innerHTML')
end

#textObject



15
16
17
18
# File 'lib/kendo.rb', line 15

def text
  # useful to see for debugging
  self.el.text
end