Class: Documents::CheckboxValue

Inherits:
FieldValue
  • Object
show all
Defined in:
app/models/documents/checkbox_value.rb

Constant Summary collapse

DEFAULTS =
{"yes" => true, "y" => true, "no" => false, "n" => false}.freeze

Instance Method Summary collapse

Methods inherited from FieldValue

#has_value?, #path

Instance Method Details

#to_sObject



7
# File 'app/models/documents/checkbox_value.rb', line 7

def to_s = value ? "☑️" : ""