[devdocsgjs/main: 1310/1867] Improve quality of code
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1310/1867] Improve quality of code
- Date: Fri, 19 Nov 2021 23:47:53 +0000 (UTC)
commit 7952cba16779771bd58947d77e8da0d8c00b6932
Author: MasterEnoc <brianhernandez222 hotmail com>
Date: Mon Nov 30 09:33:57 2020 -0600
Improve quality of code
lib/docs/filters/sass/entries.rb | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
---
diff --git a/lib/docs/filters/sass/entries.rb b/lib/docs/filters/sass/entries.rb
index 4c97cf61..47aa7ac7 100644
--- a/lib/docs/filters/sass/entries.rb
+++ b/lib/docs/filters/sass/entries.rb
@@ -7,14 +7,26 @@ module Docs
end
def get_type
- return 'Syntax' if slug.include?('syntax')
- return 'Style rules' if slug.include?('style')
- return 'At-Rules' if slug.include?('at')
- return 'Values' if slug.include?('values')
- return 'Operators' if slug.include?('operators')
- return 'Command line' if slug.include?('cli')
- return 'Modules' if slug.include?('modules')
- 'Misc'
+
+ case slug
+ when /syntax/
+ 'Syntax'
+ when /style/
+ 'Style rules'
+ when /at/
+ 'At-Rules'
+ when /values/
+ 'Values'
+ when /operators/
+ 'Operators'
+ when /cli/
+ 'Command line'
+ when /modules/
+ 'Modules'
+ else
+ 'Misc'
+ end
+
end
def additional_entries
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]