Class: Tk::Text::IndexString

Inherits:
String
  • Object
show all
Includes:
IndexModMethods
Defined in:
ext/lib/tk/text.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from IndexModMethods

#+, #-, #any_chars, #any_indices, #any_lines, #chars, #display_chars, #display_indices, #display_lineend, #display_lines, #display_linestart, #display_wordend, #display_wordstart, #indices, #lineend, #lines, #linestart, #wordend, #wordstart

Class Method Details

.at(x, y) ⇒ Object



231
232
233
# File 'ext/lib/tk/text.rb', line 231

def self.at(x,y)
  self.new("@#{x},#{y}")
end

.new(str) ⇒ Object



235
236
237
238
239
240
241
242
243
# File 'ext/lib/tk/text.rb', line 235

def self.new(str)
  if str.kind_of?(String)
    super(str)
  elsif str.kind_of?(Symbol)
    super(str.to_s)
  else
    str
  end
end

Instance Method Details

#idObject



245
246
247
# File 'ext/lib/tk/text.rb', line 245

def id
  self
end