Class: GoNative::Utils::SanitizePluginName

Inherits:
Object
  • Object
show all
Defined in:
lib/gonative/utils/sanitize_plugin_name.rb

Class Method Summary collapse

Class Method Details

.call(raw_name, platform) ⇒ Object



9
10
11
12
13
# File 'lib/gonative/utils/sanitize_plugin_name.rb', line 9

def call(raw_name, platform)
  name_components = raw_name.underscore.dasherize.split('-') - ['plugin', platform]

  name_components.join('-')
end