Method: Loquacious::Configuration::Help#normalize_attr

Defined in:
lib/loquacious/configuration/help.rb

#normalize_attr(name) ⇒ Object

Normalize the attribute name.



163
164
165
166
167
168
169
170
171
# File 'lib/loquacious/configuration/help.rb', line 163

def normalize_attr( name )
  case name
  when String, nil; name.to_s
  when Symbol; name.to_s
  when Array;  name.join('.')
  else
    raise Error, "cannot convert #{name.inspect} into an attribute identifier"
  end
end