Class: Reline::KillRing::RingPoint
- Inherits:
-
Struct
- Object
- Struct
- Reline::KillRing::RingPoint
- Defined in:
- lib/reline/kill_ring.rb
Instance Attribute Summary collapse
-
#backward ⇒ Object
Returns the value of attribute backward.
-
#forward ⇒ Object
Returns the value of attribute forward.
-
#str ⇒ Object
Returns the value of attribute str.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(str) ⇒ RingPoint
constructor
A new instance of RingPoint.
Constructor Details
#initialize(str) ⇒ RingPoint
Returns a new instance of RingPoint.
12 13 14 |
# File 'lib/reline/kill_ring.rb', line 12 def initialize(str) super(nil, nil, str) end |
Instance Attribute Details
#backward ⇒ Object
Returns the value of attribute backward
11 12 13 |
# File 'lib/reline/kill_ring.rb', line 11 def backward @backward end |
#forward ⇒ Object
Returns the value of attribute forward
11 12 13 |
# File 'lib/reline/kill_ring.rb', line 11 def forward @forward end |
#str ⇒ Object
Returns the value of attribute str
11 12 13 |
# File 'lib/reline/kill_ring.rb', line 11 def str @str end |
Instance Method Details
#==(other) ⇒ Object
16 17 18 |
# File 'lib/reline/kill_ring.rb', line 16 def ==(other) equal?(other) end |