From c5ddc51d27cb4d4b69ab06875424162a9c0a7548 Mon Sep 17 00:00:00 2001 From: Matthias Guenther Date: Sat, 4 Jun 2016 19:33:48 +0200 Subject: [PATCH] Remove class and module from generated names --- lib/docs/filters/padrino/entries.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/padrino/entries.rb b/lib/docs/filters/padrino/entries.rb index e3789376..59f085c2 100644 --- a/lib/docs/filters/padrino/entries.rb +++ b/lib/docs/filters/padrino/entries.rb @@ -2,7 +2,9 @@ module Docs class Padrino class EntriesFilter < Docs::EntriesFilter def get_name - at_css('h1, h2').content + name = at_css('h1, h2').content + name.remove! 'Class: ' + name.remove! 'Module: ' end def get_type