Class: Chieftain::StringConvertor

Inherits:
Object
  • Object
show all
Defined in:
lib/chieftain/convertors.rb

Overview

A convertor for string values.

Instance Method Summary collapse

Instance Method Details

#convert(value) ⇒ Object



46
47
48
# File 'lib/chieftain/convertors.rb', line 46

def convert(value)
  value.to_s
end

#convertible?(value) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/chieftain/convertors.rb', line 42

def convertible?(value)
  true
end