class PluginFile

Represents the

Attributes

absolute_path[R]
plugin_type[R]

Public Class Methods

new(absolute_path, plugin_type) click to toggle source
# File lib/core/plugin_file.rb, line 8
def initialize(absolute_path, plugin_type)
  @absolute_path = absolute_path
  @plugin_type = plugin_type
end

Public Instance Methods

instance_name() click to toggle source
# File lib/core/plugin_file.rb, line 13
def instance_name
  plugin_name.gsub(StringHelper.camelize(@plugin_type), "")
end
module_class_name() click to toggle source
# File lib/core/plugin_file.rb, line 21
def module_class_name
  "#{plugin_name}::#{instance_name}"
end
plugin_name() click to toggle source
# File lib/core/plugin_file.rb, line 17
def plugin_name
  StringHelper.camelize(File.basename(@absolute_path, ".rb"))
end