Class: Tap::Support::AuditIterate

Inherits:
Object
  • Object
show all
Defined in:
lib/tap/support/audit.rb

Overview

Marks the expansion of an Audit trail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index) ⇒ AuditIterate

Returns a new instance of AuditIterate.



16
# File 'lib/tap/support/audit.rb', line 16

def initialize(index) @index = index end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



15
16
17
# File 'lib/tap/support/audit.rb', line 15

def index
  @index
end

Instance Method Details

#==(another) ⇒ Object

True if another is an AuditIterate with the same index.



19
20
21
# File 'lib/tap/support/audit.rb', line 19

def ==(another)
  another.kind_of?(AuditIterate) && another.index == index
end

#to_sObject

Returns a string like ‘_iterate(<index>)’.



24
25
26
# File 'lib/tap/support/audit.rb', line 24

def to_s
  "_iterate(#{index})"
end