Class: Raif::PromptDiff::Line

Inherits:
Struct
  • Object
show all
Defined in:
lib/raif/prompt_diff.rb

Overview

action: :unchanged, :deleted, :added

Instance Attribute Summary collapse

Instance Attribute Details

#action ⇒ Object

Returns the value of attribute action

Returns:

  • (Object) —

    the current value of action



13
14
15
# File 'lib/raif/prompt_diff.rb', line 13

def action
  @action
end

#segments ⇒ Object

Returns the value of attribute segments

Returns:

  • (Object) —

    the current value of segments



13
14
15
# File 'lib/raif/prompt_diff.rb', line 13

def segments
  @segments
end