Class: ThemeSettingsManager::String

Inherits:
ThemeSettingsManager show all
Defined in:
lib/theme_settings_manager/string.rb

Instance Attribute Summary

Attributes inherited from ThemeSettingsManager

#default, #name, #theme

Instance Method Summary collapse

Methods inherited from ThemeSettingsManager

cast, cast_row_value, create, #create_record!, #db_record, #description, #ensure_is_valid_value!, extract_value_from_row, #has_max?, #has_min?, #has_record?, #initialize, #requests_refresh?, #type, #type_name, types, #update_record!, #value, #value=

Constructor Details

This class inherits a constructor from ThemeSettingsManager

Instance Method Details

#json_schemaObject



8
9
10
11
12
13
14
# File 'lib/theme_settings_manager/string.rb', line 8

def json_schema
  begin
    JSON.parse(@opts[:json_schema])
  rescue StandardError
    false
  end
end

#textareaObject



4
5
6
# File 'lib/theme_settings_manager/string.rb', line 4

def textarea
  @opts[:textarea]
end