Class: PolyglotIos::Resource::Language

Inherits:
Base
  • Object
show all
Includes:
Helper::General
Defined in:
lib/ios_polyglot_cli/api/language.rb

Constant Summary

Constants included from Helper::General

Helper::General::ESCAPE_KEYWORDS

Constants included from Helper::Depaginate

Helper::Depaginate::PER_PAGE

Instance Method Summary collapse

Methods included from Helper::General

#clean_case_name, #clean_enum_name, #clean_variable_name, #config, #escape_keyword_if_needed, #escape_with_underscore_if_needed, #indent, #programming_language, #project_configs, #skip_writing_language_struct, #token, #token_env_variable, #url, #use_old_naming

Methods included from Helper::Terminal

#generate_token_message, #prompt, #success

Methods inherited from Base

api_url, depaginate, token

Methods included from Helper::Depaginate

#depaginate_query

Instance Method Details

#clean_nameObject



13
14
15
# File 'lib/ios_polyglot_cli/api/language.rb', line 13

def clean_name()
  clean_variable_name(name)
end

#code(use_simple_naming = false) ⇒ Object



7
8
9
10
11
# File 'lib/ios_polyglot_cli/api/language.rb', line 7

def code(use_simple_naming = false)
  code = locale.downcase
  return code if !use_simple_naming
  return code.split("_").first
end