class OldSql::ReportDesign::ChartData
Constants
- COLUMN
- NUMERIC_LITERAL
- OPERATOR
Attributes
type[RW]
value[RW]
Public Class Methods
new(value)
click to toggle source
# File lib/old_sql/report_design/chart_data.rb, line 10 def initialize(value) @value = value set_type end
Private Instance Methods
set_type()
click to toggle source
# File lib/old_sql/report_design/chart_data.rb, line 17 def set_type @type = case @value[0] when /[\/*+-\Q()]/ OPERATOR when /[0-9]/ NUMERIC_LITERAL else COLUMN end end