Class: Yatte::Clipboard
- Inherits:
-
Object
- Object
- Yatte::Clipboard
- Defined in:
- lib/yatte/clipboard.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize ⇒ Clipboard
constructor
A new instance of Clipboard.
- #store(text) ⇒ Object
Constructor Details
#initialize ⇒ Clipboard
Returns a new instance of Clipboard.
5 6 7 |
# File 'lib/yatte/clipboard.rb', line 5 def initialize @content = nil end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
13 14 15 |
# File 'lib/yatte/clipboard.rb', line 13 def content @content end |
Instance Method Details
#empty? ⇒ Boolean
15 16 17 |
# File 'lib/yatte/clipboard.rb', line 15 def empty? @content.nil? || @content.empty? end |
#store(text) ⇒ Object
9 10 11 |
# File 'lib/yatte/clipboard.rb', line 9 def store(text) @content = text end |