File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2323 "Terminal::Widgets::App" : " lib/Terminal/Widgets/App.rakumod" ,
2424 "Terminal::Widgets::ColorTheme" : " lib/Terminal/Widgets/ColorTheme.rakumod" ,
2525 "Terminal::Widgets::ColorThemes" : " lib/Terminal/Widgets/ColorThemes.rakumod" ,
26+ "Terminal::Widgets::Common" : " lib/Terminal/Widgets/Common.rakumod" ,
2627 "Terminal::Widgets::Events" : " lib/Terminal/Widgets/Events.rakumod" ,
2728 "Terminal::Widgets::Focusable" : " lib/Terminal/Widgets/Focusable.rakumod" ,
2829 "Terminal::Widgets::Form" : " lib/Terminal/Widgets/Form.rakumod" ,
Original file line number Diff line number Diff line change 1+ # ABSTRACT: Role with common methods for all major T-W class hierarchies
2+
3+
4+ # | Role with common methods for all major T-W class hierarchies
5+ role Terminal::Widgets::Common {
6+ # | Cache of DEBUG level at time of object creation
7+ has UInt : D $ . debug = + ($ * DEBUG // 0 );
8+
9+ # | Shortened name for gists and monikers
10+ method gist-name () { self .^ name . subst (' Terminal::Widgets::' , ' ' ) }
11+ }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ use v6.d;
22use Test;
33
44use Terminal::Widgets;
5+ use Terminal::Widgets::Common;
56use Terminal::Widgets::WidgetRegistry;
67
78use Terminal::Widgets::Utils;
You can’t perform that action at this time.
0 commit comments