Class: Amiba::Source::OffsetScope
- Inherits:
-
Object
- Object
- Amiba::Source::OffsetScope
- Defined in:
- lib/amiba/source/entry_finder.rb
Instance Method Summary collapse
- #apply(entries) ⇒ Object
-
#initialize(offset = 0) ⇒ OffsetScope
constructor
A new instance of OffsetScope.
Constructor Details
#initialize(offset = 0) ⇒ OffsetScope
Returns a new instance of OffsetScope.
129 130 131 |
# File 'lib/amiba/source/entry_finder.rb', line 129 def initialize(offset = 0) @offset = offset end |
Instance Method Details
#apply(entries) ⇒ Object
132 133 134 |
# File 'lib/amiba/source/entry_finder.rb', line 132 def apply(entries) entries[@offset..-1] end |