Skip to content
This repository was archived by the owner on Jun 13, 2021. It is now read-only.

Commit 02e1c86

Browse files
committed
try define Ruby classes & modules in before hook
1 parent d38dd04 commit 02e1c86

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

control/mouse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ control:
99
7: wheel_right
1010

1111
script:
12-
- after: |
12+
- before: |
1313
module Mouse
1414
NAME_BY_CODE = CONFIG['control']['mouse']
1515

display/notice.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ display:
55
notice: 5
66

77
script:
8-
- after: |
8+
- before: |
99
module Notice
1010
extend self
1111

display/tags.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import:
33
- display/barlet
44

55
script:
6-
- after: |
6+
- before: |
77
class TagBarlet < Barlet
88
def initialize tag
99
super tag, :left
1010
self.label = tag
1111
end
1212
end
1313
14+
- after: |
1415
# create buttons for tags in /lbar
1516
fs.lbar.clear
1617
tags.each {|t| event 'CreateTag', t }

0 commit comments

Comments
 (0)