Class: Irwi::Comparators::Spans::NotChangedSpan

Inherits:
Object
  • Object
show all
Defined in:
lib/irwi/comparators/spans/not_changed_span.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(v) ⇒ NotChangedSpan

Returns a new instance of NotChangedSpan.



5
6
7
# File 'lib/irwi/comparators/spans/not_changed_span.rb', line 5

def initialize( v )
  @value = v
end

Instance Attribute Details

#valueObject Also known as: old_value, new_value

Returns the value of attribute value.



3
4
5
# File 'lib/irwi/comparators/spans/not_changed_span.rb', line 3

def value
  @value
end

Instance Method Details

#actionObject



13
14
15
# File 'lib/irwi/comparators/spans/not_changed_span.rb', line 13

def action
  '='
end

#to_sObject



9
10
11
# File 'lib/irwi/comparators/spans/not_changed_span.rb', line 9

def to_s
  @value.to_s
end