Sha256: d046a9b45660c880ad0e58b75ab7b941ffff342c4170a52382dc20efc40bc1a5

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

require 'delegate'

module RbRsync
  class Option < SimpleDelegator
    attr_reader :rbsync
    attr_reader :name

    def initialize rbsync, name
      super(rbsync)

      @rbsync = rbsync
      @name = name
    end

    def ~
      self.rbsync.send("#{name}=", false)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbrsync-0.0.8 lib/rbrsync/option.rb
rbrsync-0.0.5 lib/rbrsync/option.rb
rbrsync-0.0.4 lib/rbrsync/option.rb
rbrsync-0.0.3 lib/rbrsync/option.rb
rbrsync-0.0.2 lib/rbrsync/option.rb