Method: ATSPI::Accessible::Text::Editable#copy

Defined in:
lib/atspi/accessible/text/editable.rb

#copy(from: 0, to: length) ⇒ true, false

Copies its content in the given range into the clipboard. Will succeed only if it’s editable.

Parameters:

  • from (responds to #to_i) (defaults to: 0)

    the start offset of the range

  • to (responds to #to_i) (defaults to: length)

    the end offset of the range

Returns:

  • (true, false)

    indicating success

See Also:



59
60
61
# File 'lib/atspi/accessible/text/editable.rb', line 59

def copy(from: 0, to: length)
  editable? and @native.copy_text(from.to_i, to.to_i)
end