Class: ODDB::State::OffsetPageFacade

Inherits:
PageFacade show all
Defined in:
src/state/page_facade.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from PageFacade

#initialize, #method_missing, #next, #previous, #respond_to?, #to_i, #to_s

Methods inherited from Array

#obj_path

Constructor Details

This class inherits a constructor from ODDB::State::PageFacade

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ODDB::State::PageFacade

Instance Attribute Details

- (Object) offset

Returns the value of attribute offset



32
33
34
# File 'src/state/page_facade.rb', line 32

def offset
  @offset
end

- (Object) size

Returns the value of attribute size



32
33
34
# File 'src/state/page_facade.rb', line 32

def size
  @size
end

Instance Method Details

- (Object) content



33
34
35
# File 'src/state/page_facade.rb', line 33

def content
  "#{@offset.next} - #{@offset + @size}"
end