class AdLint::Cc1::ValueTransition
Constants
- Snapshot
Public Class Methods
new(mval)
click to toggle source
# File lib/adlint/cc1/value.rb, line 1973 def initialize(mval) @ordered_snapshots = create_ordered_snapshots(mval) end
Public Instance Methods
each(&block)
click to toggle source
# File lib/adlint/cc1/value.rb, line 1985 def each(&block) if block_given? @ordered_snapshots.each(&block) else to_enum(:each) end end
first()
click to toggle source
# File lib/adlint/cc1/value.rb, line 1977 def first @ordered_snapshots.first end
last()
click to toggle source
# File lib/adlint/cc1/value.rb, line 1981 def last @ordered_snapshots.last end
Private Instance Methods
create_ordered_snapshots(mval)
click to toggle source
# File lib/adlint/cc1/value.rb, line 1994 def create_ordered_snapshots(mval) if mval.ancestor older = create_ordered_snapshots(mval.ancestor) else older = [] end older.push(Snapshot.new(mval._base.value, mval._base.tag)) end