Sha256: 6d6e9d1c219e5cb9bfd61ad05a7f91e53be5bbf4fd921e1f43b5d935731a6c6b
Contents?: true
Size: 948 Bytes
Versions: 3
Compression:
Stored size: 948 Bytes
Contents
# # $Id: book.rb 4315 2009-09-02 04:15:24Z kmuto $ # # Copyright (c) 2002-2008 Minero Aoki # 2009 Minero Aoki, Kenshi Muto # # This program is free software. # You can distribute or modify this program under the terms of # the GNU LGPL, Lesser General Public License version 2.1. # For details of the GNU LGPL, see the file "COPYING". # module ReVIEW module Book class PageMetric MetricData = Struct.new(:n_lines, :n_columns) def PageMetric.a5 new(46, 80, 30, 74, 1) end def PageMetric.b5 new(46, 80, 30, 74, 2) end def initialize(list_lines, list_columns, text_lines, text_columns, page_per_kbyte) @list = MetricData.new(list_lines, list_columns) @text = MetricData.new(text_lines, text_columns) @page_per_kbyte = page_per_kbyte end attr_reader :list attr_reader :text attr_reader :page_per_kbyte end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
review-1.2.0 | lib/review/book/page_metric.rb |
review-1.1.0 | lib/review/book/page_metric.rb |
tmtms-review-1.0.0 | lib/review/book/page_metric.rb |