Module: Glib::EnumHumanization

Extended by:
ActiveSupport::Concern
Included in:
ApplicationRecord
Defined in:
app/models/concerns/glib/enum_humanization.rb

Instance Method Summary collapse

Instance Method Details

#glib_enum_humanize(enum_name, default_enum_value = nil, hint_suffix: false) ⇒ Object



14
15
16
# File 'app/models/concerns/glib/enum_humanization.rb', line 14

def glib_enum_humanize(enum_name, default_enum_value = nil, hint_suffix: false)
  self.class.glib_enum_humanize(enum_name, send(enum_name) || default_enum_value, hint_suffix: hint_suffix)
end