Class: AdLint::Cc1::ValueTransition
- Inherits:
-
Object
- Object
- AdLint::Cc1::ValueTransition
- Includes:
- Enumerable
- Defined in:
- lib/adlint/cc1/value.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #first ⇒ Object
-
#initialize(mval) ⇒ ValueTransition
constructor
A new instance of ValueTransition.
- #last ⇒ Object
Constructor Details
#initialize(mval) ⇒ ValueTransition
Returns a new instance of ValueTransition.
1973 1974 1975 |
# File 'lib/adlint/cc1/value.rb', line 1973 def initialize(mval) @ordered_snapshots = create_ordered_snapshots(mval) end |
Instance Method Details
#each(&block) ⇒ Object
1985 1986 1987 1988 1989 1990 1991 |
# 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 ⇒ Object
1977 1978 1979 |
# File 'lib/adlint/cc1/value.rb', line 1977 def first @ordered_snapshots.first end |
#last ⇒ Object
1981 1982 1983 |
# File 'lib/adlint/cc1/value.rb', line 1981 def last @ordered_snapshots.last end |