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.45.0 lib/old_sql/report_design/cell.rb
old_sql-1.44.0 lib/old_sql/report_design/cell.rb
old_sql-1.43.0 lib/old_sql/report_design/cell.rb
old_sql-1.42.0 lib/old_sql/report_design/cell.rb
old_sql-1.41.0 lib/old_sql/report_design/cell.rb
old_sql-1.40.0 lib/old_sql/report_design/cell.rb
old_sql-1.39.0 lib/old_sql/report_design/cell.rb
old_sql-1.38.0 lib/old_sql/report_design/cell.rb
old_sql-1.37.0 lib/old_sql/report_design/cell.rb
old_sql-1.36.0 lib/old_sql/report_design/cell.rb
old_sql-1.35.0 lib/old_sql/report_design/cell.rb
old_sql-1.34.0 lib/old_sql/report_design/cell.rb
old_sql-1.33.0 lib/old_sql/report_design/cell.rb
old_sql-1.32.0 lib/old_sql/report_design/cell.rb
old_sql-1.31.1 lib/old_sql/report_design/cell.rb
old_sql-1.30.0 lib/old_sql/report_design/cell.rb
old_sql-1.29.0 lib/old_sql/report_design/cell.rb
old_sql-1.28.0 lib/old_sql/report_design/cell.rb
old_sql-1.27.0 lib/old_sql/report_design/cell.rb
old_sql-1.26.0 lib/old_sql/report_design/cell.rb