Class: RbRsync::Option

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/rbrsync/option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rbsync, name) ⇒ Option

Returns a new instance of Option.



8
9
10
11
12
13
# File 'lib/rbrsync/option.rb', line 8

def initialize rbsync, name
  super(rbsync)

  @rbsync = rbsync
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/rbrsync/option.rb', line 6

def name
  @name
end

#rbsyncObject (readonly)

Returns the value of attribute rbsync.



5
6
7
# File 'lib/rbrsync/option.rb', line 5

def rbsync
  @rbsync
end

Instance Method Details

#~Object



15
16
17
# File 'lib/rbrsync/option.rb', line 15

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