Class: AhoyCaptain::PredicateLabel

Inherits:
Object
  • Object
show all
Defined in:
lib/ahoy_captain/predicate_label.rb

Class Method Summary collapse

Class Method Details

.[](value) ⇒ Object



3
4
5
# File 'lib/ahoy_captain/predicate_label.rb', line 3

def self.[](value)
  AhoyCaptain.config.predicate_labels[value.to_sym] || value.to_s.titleize
end