Class: VER::Register::Clipboard

Inherits:
VER::Register show all
Defined in:
lib/ver/register.rb

Overview

Special register for clipboard, found in Register

Constant Summary

Constants inherited from VER::Register

REGISTERS

Constants inherited from Struct

Struct::CACHE

Instance Attribute Summary

Attributes inherited from VER::Register

#name

Instance Method Summary collapse

Methods inherited from VER::Register

[], []=, each, fetch

Methods inherited from Struct

new

Instance Method Details

#inspectObject



37
38
39
# File 'lib/ver/register.rb', line 37

def inspect
  "#<VER::Register::Clipboard name=%p, value=%p>" % [name, value]
end

#valueObject



33
34
35
# File 'lib/ver/register.rb', line 33

def value
  VER::Clipboard.dwim
end

#value=(object) ⇒ Object



29
30
31
# File 'lib/ver/register.rb', line 29

def value=(object)
  VER::Clipboard.dwim = object
end