class OldSql::ReportDesign::Cell

Attributes

cell[RW]
cell_data[RW]

Public Class Methods

new(value) click to toggle source
# File lib/old_sql/report_design/cell.rb, line 6
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

Public Instance Methods

expression?() click to toggle source
# File lib/old_sql/report_design/cell.rb, line 18
def expression?
  if @cell_data.count>1
    return true
  else
    return false
  end
end