Class: Tap::Support::AuditIterate
Overview
Marks the expansion of an Audit trail
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
-
#==(another) ⇒ Object
True if another is an AuditIterate with the same index.
-
#initialize(index) ⇒ AuditIterate
constructor
A new instance of AuditIterate.
-
#to_s ⇒ Object
Returns a string like ‘_iterate(<index>)’.
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
#index ⇒ Object (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_s ⇒ Object
Returns a string like ‘_iterate(<index>)’.
24 25 26 |
# File 'lib/tap/support/audit.rb', line 24 def to_s "_iterate(#{index})" end |