Method: ActionWebService::BaseType#human_name

Defined in:
lib/action_web_service/support/signature_types.rb

#human_name(show_name = true) ⇒ Object



177
178
179
180
181
# File 'lib/action_web_service/support/signature_types.rb', line 177

def human_name(show_name=true)
  type_type = array? ? element_type.type.to_s : self.type.to_s
  str = array? ? (type_type + '[]') : type_type
  show_name ? (str + " " + name.to_s) : str
end