Method: Puma::Plugin.extract_name

Defined in:
lib/puma/plugin.rb

.extract_name(ary) ⇒ Object



90
91
92
93
94
95
# File 'lib/puma/plugin.rb', line 90

def self.extract_name(ary)
  path = ary.first[CALLER_FILE]

  m = %r!puma/plugin/([^/]*)\.rb$!.match(path)
  m[1]
end