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.



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

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



9
10
11
# File 'lib/reline/kill_ring.rb', line 9

def backward
  @backward
end

#forwardObject

Returns the value of attribute forward

Returns:

  • (Object)

    the current value of forward



9
10
11
# File 'lib/reline/kill_ring.rb', line 9

def forward
  @forward
end

#strObject

Returns the value of attribute str

Returns:

  • (Object)

    the current value of str



9
10
11
# File 'lib/reline/kill_ring.rb', line 9

def str
  @str
end

Instance Method Details

#==(other) ⇒ Object



14
15
16
# File 'lib/reline/kill_ring.rb', line 14

def ==(other)
  object_id == other.object_id
end