Top Level Namespace

Defined Under Namespace

Modules: ApplePrintShopMiniPix, Font, GenericGIF, PrintShopFont, ProcSource, ScreenDump, ShapeTable, SubclassTracking Classes: A2Dsk, A2DskDosOrder, A2DskPhysicalOrder, AcornBASIC, AcornBBC, AcornBinary, AcornDFS, AcornDsk, AcornText, Apple2, AppleBinary, AppleCPM, AppleDos, AppleDosPic, AppleDosPrintShopFont, AppleDosPrintShopMiniPix, AppleHiResPic, AppleText, AppleWorksWP, Applesoft, Atari800, AtariBasic, AtariBinary, AtariBitmapFont, AtariDos, AtariMicroPainterPic, AtariText, Atr, AxePackedAppleDosPic, C64BasicPrg, C64BlazinForthBlocks, C64GeoPaintPic, C64GeoWriteFile, C64GeosBASICFile, C64GeosFile, C64GeosFont, C64GeosPhotoAlbum, C64PhotoScrap, C64Prg, C64PrgSnapshot, C64PrgText, C64Seq, C64SinglePrgImage, CPMFile, CVT, CbmFile, Coco, CocoBasic, CocoMachineLanguage, CocoScreen, CocoText, D64, D81, DumpUtilities, FileCache, FileCacheItem, FileContainer, FileSystem, FileSystemImage, G64, GenericFile, HostSystem, ImageFormat, IntegerBASIC, JvcDsk, MBasic, NADOLDos, NADOLFile, NADOLPic, NADOLTokens, NativeFileType, PNG, PackedAppleDosPic, PackedProDosPic, PascalDos, PascalFile, PascalPic, Pc99DD, Pc99Dsk, Pc99SD, ProDos, ProDosBINFile, ProDosBinPic, ProDosFile, ProDosPrintShopMiniPix, Proc, RawDisk, RipXplore, RipXploreLog, RsDos, ScAsm, ScrunchedAppleDosPic, ShapeTableFont, String, Ti99, Ti99BasicFile, Ti99Dsk, Ti99File, Ti99Fms, Ti99TextFile, TiArtistColours, TiArtistPattern, TiRLE, Trs80, Trs80BasicListing, Trs80Cmd, Trs80Jcl, Trs80Jv1Dsk, Trs80LevelIIBasic, Trs80PascalSource, Trs80Text, TrsDos, V9T9Dsk, Zx81Basic, Zx81PFile, Zx81Snapshot

Constant Summary collapse

SCRIPT_LINES__ =

Tell the ruby interpreter to load code lines of required files into this filename -> lines Hash. This behaviour seems to be very undocumented and therefore shouldn’t really be relied on.

{}
EVAL_LINES__ =
Hash.new
@@logger =
Logger.new(STDERR)

Instance Method Summary collapse

Instance Method Details

#eval(code, *args) ⇒ Object



203
204
205
206
207
208
209
210
211
# File 'lib/proc_source.rb', line 203

def eval(code, *args)
  context, descriptor, start_line, *more = *args
  descriptor ||= "(eval#{code.hash})"
  start_line ||= 0
  lines ||= code.grep(/.*/)
  EVAL_LINES__[descriptor] ||= Array.new
  EVAL_LINES__[descriptor][start_line, lines.length] = lines
  old_eval(code, context, descriptor, start_line, *more)
end

#old_evalObject



202
# File 'lib/proc_source.rb', line 202

alias :old_eval :eval

#track_lengthObject



122
123
124
# File 'lib/image_formats/Ti99Dsk.rb', line 122

def track_length
  ((256+gap_between_sectors)*sectors_per_track)+gap_between_tracks
end