Class: CaptainConfig::StringConfig

Inherits:
BaseConfig
  • Object
show all
Defined in:
lib/captain_config/models/string_config.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.coerce(value) ⇒ Object



12
13
14
# File 'lib/captain_config/models/string_config.rb', line 12

def self.coerce(value)
  value.to_s
end

Instance Method Details

#valueObject



4
5
6
# File 'lib/captain_config/models/string_config.rb', line 4

def value
  self.text
end

#value=(new_value) ⇒ Object



8
9
10
# File 'lib/captain_config/models/string_config.rb', line 8

def value=(new_value)
  self.text = new_value.to_s
end