Class: PolyglotIos::Resource::Language
- 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
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
Methods included from Helper::Depaginate
Instance Method Details
#clean_name ⇒ Object
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 |