class Flumtter::self::Base

Public Class Methods

parse_name(filename) click to toggle source
# File lib/flumtter/app/plugins/plugin_manager.rb, line 10
def self.parse_name(filename)
  pname = Pathname(Plugins::PluginManager::PluginDir)
  Pathname(filename).relative_path_from(pname).to_s
end

Public Instance Methods

element() click to toggle source
# File lib/flumtter/app/plugins/plugin_manager.rb, line 15
      def element
        @text ||= <<~EOF
          #{@index}: #{name}
        EOF
      end

Private Instance Methods

name() click to toggle source
# File lib/flumtter/app/plugins/plugin_manager.rb, line 22
def name
  self.class.parse_name(@object)
end