Sha256: 539a08926463e2114937632c4b27a279f8d5a6a1b6c6ef7fd471238c3f26b071

Contents?: true

Size: 569 Bytes

Versions: 41

Compression:

Stored size: 569 Bytes

Contents

module OldSql
  module ReportDesign
    class Cell
      attr_accessor :cell_data, :cell
      
      def initialize(value)
        @cell = value.strip
        @cell_data = []
        
        # Check if cell is a label
        if @cell[0] =~ /['"]/
          @cell_data << CellData.new(@cell)
        else
          value.split(" ").each {|cell_data| @cell_data << CellData.new(cell_data)}
        end
      end
      
      def expression?
        if @cell_data.count>1
          return true
        else
          return false
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
old_sql-1.65.0 lib/old_sql/report_design/cell.rb
old_sql-1.64.0 lib/old_sql/report_design/cell.rb
old_sql-1.63.0 lib/old_sql/report_design/cell.rb
old_sql-1.62.0 lib/old_sql/report_design/cell.rb
old_sql-1.61.0 lib/old_sql/report_design/cell.rb
old_sql-1.60.0 lib/old_sql/report_design/cell.rb
old_sql-1.59.0 lib/old_sql/report_design/cell.rb
old_sql-1.58.0 lib/old_sql/report_design/cell.rb
old_sql-1.57.0 lib/old_sql/report_design/cell.rb
old_sql-1.56.0 lib/old_sql/report_design/cell.rb
old_sql-1.55.0 lib/old_sql/report_design/cell.rb
old_sql-1.54.0 lib/old_sql/report_design/cell.rb
old_sql-1.53.0 lib/old_sql/report_design/cell.rb
old_sql-1.52.0 lib/old_sql/report_design/cell.rb
old_sql-1.51.0 lib/old_sql/report_design/cell.rb
old_sql-1.50.0 lib/old_sql/report_design/cell.rb
old_sql-1.49.0 lib/old_sql/report_design/cell.rb
old_sql-1.48.0 lib/old_sql/report_design/cell.rb
old_sql-1.47.0 lib/old_sql/report_design/cell.rb
old_sql-1.46.0 lib/old_sql/report_design/cell.rb