Module: ApexCharts::Config::Schema

Included in:
ApexCharts::Configuration
Defined in:
lib/apex_charts/config/schema.rb

Instance Method Summary collapse

Instance Method Details

#schemaObject



6
7
8
# File 'lib/apex_charts/config/schema.rb', line 6

def schema
  @schema ||= 'Default'
end

#schema=(name) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/apex_charts/config/schema.rb', line 10

def schema=(name)
  @schema = case name
            when :dry_schema, 'dry_schema', 'dry-schema'
              'DrySchema'
            else
              'Default'
            end
end