Class: Amiba::Source::OffsetScope

Inherits:
Object
  • Object
show all
Defined in:
lib/amiba/source/entry_finder.rb

Instance Method Summary collapse

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