Class: RbRsync::Option
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RbRsync::Option
- Defined in:
- lib/rbrsync/option.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rbsync ⇒ Object
readonly
Returns the value of attribute rbsync.
Instance Method Summary collapse
-
#initialize(rbsync, name) ⇒ Option
constructor
A new instance of Option.
- #~ ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/rbrsync/option.rb', line 6 def name @name end |
#rbsync ⇒ Object (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 |