Sha256: f9ff2a44e1a0ecc4a433af4b60842117e4dc30b97c2efa2feaa7d2abb5f29ccc

Contents?: true

Size: 645 Bytes

Versions: 28

Compression:

Stored size: 645 Bytes

Contents

class PSD
  # Helper that lets us track the beginning and ending locations
  # of each section. This is for debug and error catching purposes,
  # primarily.
  module Section
    attr_reader :section_start, :section_end

    def start_section(section=:all)
      @section_start = {} unless @section_start
      @section_start[section] = @file.tell
    end

    def end_section(section=:all)
      @section_end = {} unless @section_end
      @section_end[section] = @file.tell
    end

    def start_of_section(section=:all)
      @section_start[section]
    end

    def end_of_section(section=:all)
      @section_end[section]
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
bench9000-0.1 vendor/psd.rb/lib/psd/section.rb
psd-2.1.2 lib/psd/section.rb
psd-2.1.1 lib/psd/section.rb
psd-2.1.0 lib/psd/section.rb
psd-2.0.0 lib/psd/section.rb
psd-1.5.0 lib/psd/section.rb
psd-1.4.5 lib/psd/section.rb
psd-1.4.4 lib/psd/section.rb
psd-1.4.3 lib/psd/section.rb
psd-1.4.2 lib/psd/section.rb
psd-1.4.1 lib/psd/section.rb
psd-1.4.0 lib/psd/section.rb
psd-1.3.3 lib/psd/section.rb
psd-1.3.2 lib/psd/section.rb
psd-1.3.0 lib/psd/section.rb
psd-1.2.2 lib/psd/section.rb
psd-1.2.1 lib/psd/section.rb
psd-1.2.0 lib/psd/section.rb
psd-1.1.1 lib/psd/section.rb
psd-1.1.0 lib/psd/section.rb