better solution for initial jump

This commit is contained in:
Torsten Ruger
2014-10-07 12:01:33 +03:00
parent 5c90ad83e0
commit b7164b354d
4 changed files with 14 additions and 9 deletions

View File

@ -3,7 +3,7 @@ require "parfait/message"
module Positioned
def position
raise "position accessed but not set at #{length} for #{self.inspect}" if @position == nil
raise "position accessed but not set at #{length} for #{self.inspect[0...500]}" if @position == nil
@position
end
def set_position pos