Class: ODisk::Link
Constant Summary
Constants inherited from Info
Info::ERROR, Info::LOCAL, Info::NORMAL, Info::REMOTE
Instance Attribute Summary collapse
-
#target ⇒ Object
Returns the value of attribute target.
Attributes inherited from Info
#group, #master, #mode, #mtime, #name, #owner, #removed
Instance Method Summary collapse
- #eql?(o) ⇒ Boolean (also: #==)
-
#initialize(name) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(name) ⇒ Link
Returns a new instance of Link.
7 8 9 10 |
# File 'lib/odisk/link.rb', line 7 def initialize(name) super(name) @target = nil end |
Instance Attribute Details
#target ⇒ Object
Returns the value of attribute target.
5 6 7 |
# File 'lib/odisk/link.rb', line 5 def target @target end |
Instance Method Details
#eql?(o) ⇒ Boolean Also known as: ==
12 13 14 |
# File 'lib/odisk/link.rb', line 12 def eql?(o) super(o) && @target == o.target end |