Class: Reline::KillRing::RingPoint

Inherits:
Struct
  • Object
show all
Defined in:
lib/reline/kill_ring.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#backwardObject

Returns the value of attribute backward

Returns:

  • (Object)

    the current value of backward



11
12
13
# File 'lib/reline/kill_ring.rb', line 11

def backward
  @backward
end

#forwardObject

Returns the value of attribute forward

Returns:

  • (Object)

    the current value of forward



11
12
13
# File 'lib/reline/kill_ring.rb', line 11

def forward
  @forward
end

#strObject

Returns the value of attribute str

Returns:

  • (Object)

    the current value of 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