Sha256: 404f2f7e5ed789392e9613e43fb0f1210e86abfbffb1b7c0f0a3d47ad6dd521c

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

# encoding: utf-8

module Fidgit
  class Clipboard
    # Items held in the clipboard.
    attr_reader :items

    def empty?; @items.empty?; end

    def initialize
      @items = []
    end

    # Copy items into the clipboard.
    #
    # @param [Array] items Items to copy
    def copy(items)
      @items = items.to_a.dup

      nil
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fidgit-0.1.3 lib/fidgit/clipboard.rb
fidgit-0.1.2 lib/fidgit/clipboard.rb
fidgit-0.1.1 lib/fidgit/clipboard.rb
fidgit-0.1.0 lib/fidgit/clipboard.rb
fidgit-0.0.6alpha lib/fidgit/clipboard.rb
fidgit-0.0.5alpha lib/fidgit/clipboard.rb
fidgit-0.0.4alpha lib/fidgit/clipboard.rb
fidgit-0.0.3alpha lib/fidgit/clipboard.rb
fidgit-0.0.2alpha lib/fidgit/clipboard.rb