vedeu 0.6.19 → 0.6.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/docs/configuration.md +6 -4
  3. data/docs/dsl.md +23 -21
  4. data/docs/events/system.md +9 -9
  5. data/docs/getting_started.md +54 -48
  6. data/docs/object_graph.md +4 -4
  7. data/lib/vedeu/all.rb +1 -1
  8. data/lib/vedeu/api/external.rb +10 -10
  9. data/lib/vedeu/api/internal.rb +2 -2
  10. data/lib/vedeu/bindings/application.rb +5 -2
  11. data/lib/vedeu/bindings/bindings.rb +15 -2
  12. data/lib/vedeu/bindings/movement.rb +10 -5
  13. data/lib/vedeu/bindings/refresh.rb +1 -1
  14. data/lib/vedeu/bindings/system.rb +1 -1
  15. data/lib/vedeu/bindings/visibility.rb +20 -37
  16. data/lib/vedeu/cursors/cursor.rb +1 -14
  17. data/lib/vedeu/dsl/all.rb +0 -1
  18. data/lib/vedeu/dsl/interface.rb +1 -1
  19. data/lib/vedeu/esc/colours.rb +1 -1
  20. data/lib/vedeu/geometry/geometry.rb +19 -25
  21. data/lib/vedeu/groups/all.rb +16 -0
  22. data/lib/vedeu/{output/clear/group.rb → groups/clear.rb} +7 -7
  23. data/lib/vedeu/{dsl/group.rb → groups/dsl.rb} +10 -10
  24. data/lib/vedeu/{models → groups}/group.rb +14 -31
  25. data/lib/vedeu/{output/refresh/refresh_group.rb → groups/refresh.rb} +7 -7
  26. data/lib/vedeu/groups/repository.rb +24 -0
  27. data/lib/vedeu/models/all.rb +0 -2
  28. data/lib/vedeu/models/interface.rb +0 -12
  29. data/lib/vedeu/models/toggleable.rb +1 -1
  30. data/lib/vedeu/output/clear/all.rb +0 -1
  31. data/lib/vedeu/output/wordwrap.rb +3 -5
  32. data/lib/vedeu/repositories/model.rb +8 -1
  33. data/lib/vedeu/runtime/main_loop.rb +2 -2
  34. data/lib/vedeu/version.rb +1 -1
  35. data/test/lib/vedeu/api/external_test.rb +1 -1
  36. data/test/lib/vedeu/bindings/application_test.rb +1 -0
  37. data/test/lib/vedeu/bindings/bindings_test.rb +27 -0
  38. data/test/lib/vedeu/borders/border_test.rb +43 -37
  39. data/test/lib/vedeu/borders/render_test.rb +5 -1
  40. data/test/lib/vedeu/buffers/buffer_test.rb +9 -7
  41. data/test/lib/vedeu/cursors/cursor_test.rb +11 -9
  42. data/test/lib/vedeu/distributed/test_application_test.rb +18 -16
  43. data/test/lib/vedeu/dsl/interface_test.rb +2 -2
  44. data/test/lib/vedeu/editor/cursor_test.rb +18 -16
  45. data/test/lib/vedeu/editor/document_test.rb +7 -5
  46. data/test/lib/vedeu/esc/actions_test.rb +0 -2
  47. data/test/lib/vedeu/esc/borders_test.rb +0 -2
  48. data/test/lib/vedeu/esc/colours_test.rb +0 -2
  49. data/test/lib/vedeu/events/aliases_test.rb +1 -1
  50. data/test/lib/vedeu/geometry/area_test.rb +10 -8
  51. data/test/lib/vedeu/geometry/dsl_test.rb +2 -2
  52. data/test/lib/vedeu/geometry/geometry_test.rb +18 -30
  53. data/test/lib/vedeu/geometry/position_test.rb +6 -4
  54. data/test/lib/vedeu/{output/clear/group_test.rb → groups/clear_test.rb} +8 -8
  55. data/test/lib/vedeu/{dsl/group_test.rb → groups/dsl_test.rb} +8 -8
  56. data/test/lib/vedeu/{models → groups}/group_test.rb +12 -10
  57. data/test/lib/vedeu/{output/refresh/refresh_group_test.rb → groups/refresh_test.rb} +7 -7
  58. data/test/lib/vedeu/{models/groups_test.rb → groups/repository_test.rb} +6 -6
  59. data/test/lib/vedeu/menus/menu_test.rb +7 -5
  60. data/test/lib/vedeu/models/cell_test.rb +5 -3
  61. data/test/lib/vedeu/models/interface_test.rb +18 -42
  62. data/test/lib/vedeu/models/toggleable_test.rb +5 -3
  63. data/test/lib/vedeu/models/views/char_test.rb +8 -6
  64. data/test/lib/vedeu/models/views/composition_test.rb +6 -4
  65. data/test/lib/vedeu/models/views/line_test.rb +5 -3
  66. data/test/lib/vedeu/models/views/stream_test.rb +9 -7
  67. data/test/lib/vedeu/models/views/view_test.rb +30 -12
  68. data/test/lib/vedeu/output/presentation/style_test.rb +4 -2
  69. data/test/lib/vedeu/plugins/plugin_test.rb +8 -6
  70. data/test/lib/vedeu/repositories/collection_test.rb +8 -6
  71. data/test/lib/vedeu/runtime/application_test.rb +1 -1
  72. data/test/test_helper.rb +1 -0
  73. metadata +18 -17
  74. data/lib/vedeu/models/groups.rb +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20a048bece8b32f4169265a0d8271e06451102eb
4
- data.tar.gz: 89d5c68d612f71e82ec8b6eecafc291632b9a8af
3
+ metadata.gz: 0fbbcdaa8be4572e7426e84959d56e5932e90bba
4
+ data.tar.gz: 039d7499ad442e6eb675920ef27abb4d8560d9a3
5
5
  SHA512:
6
- metadata.gz: 8ae2e4c6ca09d400668293fe9f15373fa3d4e1e5a676c5e8f517f78fba7ddca734eccea67225a3f4b2cce83223778cbabd45bed372f7e892ced183cb0806b645
7
- data.tar.gz: b56a9309569b7dba5ebf5973ced1e911170980d11bde67f9851ba74ef099400acc793e04c9cabcb2b21b697e900999777b3717be83228b9bbb936dfedb0331b5
6
+ metadata.gz: 8711ec3ecd769c9924fcd0f9da09d18289a32ff86f03b44cc539c2909f54355563f1817e242d106a9e2deb7c5921dc1aea17e138ab444bdb2c86407a74162c80
7
+ data.tar.gz: e724e09e2aead30c2502c31d5aefd80b9481e9c493250991eb463f6b48940e14fce71a64d7fc4617a747ce5b2f345063c49989af8a1796270ef4a586e2fbec8f
@@ -5,14 +5,16 @@ Vedeu provides a simple DSL for configuration.
5
5
 
6
6
  Vedeu.configure do
7
7
 
8
- # add configuration options here, each of which are listed below...
8
+ # add configuration options here, each of which are listed
9
+ # below...
9
10
 
10
11
  end
11
12
 
12
- If you need to access the value of Vedeu's configuration for whatever reason,
13
- simply ask for it:
13
+ If you need to access the value of Vedeu's configuration for whatever
14
+ reason, simply ask for it:
14
15
 
15
- Vedeu.configuration.base_path # => The current value of 'base_path'
16
+ # => The current value of 'base_path'
17
+ Vedeu.configuration.base_path
16
18
 
17
19
  ## Configuration Options
18
20
 
data/docs/dsl.md CHANGED
@@ -1,19 +1,20 @@
1
1
  # @title The Vedeu DSL
2
2
  # The Vedeu DSL
3
3
 
4
- Coupled with the API (for interacting with the running client application), the
5
- DSL provides the mechanism to configure aspects of your application whilst
6
- using Vedeu.
4
+ Coupled with the API (for interacting with the running client
5
+ application), the DSL provides the mechanism to configure aspects of
6
+ your application whilst using Vedeu.
7
7
 
8
8
  ## Interfaces
9
9
 
10
- An Interface is a basic element in the GUI. It usually but does not necessarily
11
- correspond to a region of the terminal screen (for example, an Interface might
12
- not be displayed at certain points in an application life cycle).
10
+ An Interface is a basic element in the GUI. It usually but does not
11
+ necessarily correspond to a region of the terminal screen (for
12
+ example, an Interface might not be displayed at certain points in an
13
+ application life cycle).
13
14
 
14
- Much of the behavior of an Interface comes from child objects that are defined
15
- under the Interface. These objects are described in more detail in their
16
- respective sections below.
15
+ Much of the behavior of an Interface comes from child objects that
16
+ are defined under the Interface. These objects are described in more
17
+ detail in their respective sections below.
17
18
 
18
19
  Here is an example of declarations for an `interface` block:
19
20
 
@@ -43,13 +44,13 @@ end
43
44
 
44
45
  ### Declaring interface sub-objects
45
46
 
46
- Every object in the DSL besides interface itself is defined for a particular
47
- interface. This can either be declared implicitly by defining the object inside
48
- an `interface` block or explicitly, by passing the interface name as a first
49
- argument to the declaration.
47
+ Every object in the DSL besides interface itself is defined for a
48
+ particular interface. This can either be declared implicitly by
49
+ defining the object inside an `interface` block or explicitly, by
50
+ passing the interface name as a first argument to the declaration.
50
51
 
51
- That is, these are equivalent ways to declare a Geometry for an existing
52
- interface
52
+ That is, these are equivalent ways to declare a Geometry for an
53
+ existing interface
53
54
 
54
55
  ```ruby
55
56
  interface 'main' do
@@ -120,11 +121,11 @@ end
120
121
 
121
122
  ## Groups
122
123
 
123
- {include:Vedeu::DSL::Group}
124
+ {include:Vedeu::Groups::DSL}
124
125
 
125
126
  ### Add interfaces to groups
126
127
 
127
- {include:Vedeu::DSL::Group.group}
128
+ {include:Vedeu::Groups::DSL.group}
128
129
 
129
130
  ## Keymaps
130
131
 
@@ -162,8 +163,9 @@ end
162
163
 
163
164
  #### Authors Notes
164
165
 
165
- The Rubydoc documentation has more specific information about the DSL methods
166
- demonstrated above: [RubyDoc](http://rubydoc.info/gems/vedeu).
166
+ The Rubydoc documentation has more specific information about the DSL
167
+ methods demonstrated above: [RubyDoc](http://rubydoc.info/gems/vedeu).
167
168
 
168
- I've tried to write the DSL in a way which makes it read nice; believing that
169
- this will make it easier to use. I hope this is the case for you.
169
+ I've tried to write the DSL in a way which makes it read nice;
170
+ believing that this will make it easier to use. I hope this is the
171
+ case for you.
@@ -17,7 +17,7 @@ define to 'do things'.
17
17
  Vedeu.trigger(:_command_, command)
18
18
 
19
19
  ### :_editor_
20
- This event is called by {Vedeu::Input::Input#capture}. When
20
+ This event is called by {Vedeu::Input::Capture#read}. When
21
21
  invoked, the key will be passed to the editor for currently
22
22
  focussed view.
23
23
 
@@ -39,11 +39,11 @@ action(s), like render the first screen, interface or make a sound.
39
39
 
40
40
  ### :_keypress_
41
41
  Will cause the triggering of the `:key` event; which you should define
42
- to 'do things'. If the `escape` key is pressed, then `key` is triggered
43
- with the argument `:escape`, also an internal event `_mode_switch_` is
44
- triggered. Vedeu recognises most key presses and some 'extended'
45
- keypress (eg. Ctrl+J), a list of supported keypresses can be found here:
46
- {Vedeu::Input::Input}.
42
+ to 'do things'. If the `escape` key is pressed, then `key` is
43
+ triggered with the argument `:escape`, also an internal event
44
+ `_mode_switch_` is triggered. Vedeu recognises most key presses and
45
+ some 'extended' keypress (eg. Ctrl+J), a list of supported keypresses
46
+ can be found here: {Vedeu::Input::Capture}.
47
47
 
48
48
  Vedeu.trigger(:_keypress_, key)
49
49
 
@@ -56,8 +56,8 @@ logging is enabled in the configuration.
56
56
  ### :_mode_switch_
57
57
  When triggered (by default, after the user presses `escape`), Vedeu
58
58
  switches between modes of the terminal. The idea here being
59
- that the raw mode is for single keypress actions, whilst fake and cooked
60
- modes allow the user to enter more elaborate commands- such as commands
61
- with arguments.
59
+ that the raw mode is for single keypress actions, whilst fake and
60
+ cooked modes allow the user to enter more elaborate commands- such as
61
+ commands with arguments.
62
62
 
63
63
  Vedeu.trigger(:_mode_switch_)
@@ -7,22 +7,24 @@ First, install the gem locally:
7
7
 
8
8
  gem install vedeu
9
9
 
10
- This will provide a new command to help build your client application. Similar
11
- to Ruby on Rails, although not nearly as advanced as the Rails equivalent,
12
- hopefully the `vedeu` command generators will get you off the ground:
10
+ This will provide a new command to help build your client application.
11
+ Similar to Ruby on Rails, although not nearly as advanced as the Rails
12
+ equivalent, hopefully the `vedeu` command generators will get you off
13
+ the ground:
13
14
 
14
15
  vedeu
15
16
 
16
17
  ## Generating a new application
17
18
 
18
- The following command will build a new application. Substitute `your_app_name`
19
- for your desired application name.
19
+ The following command will build a new application. Substitute
20
+ `your_app_name` for your desired application name.
20
21
 
21
22
  vedeu new your_app_name
22
23
 
23
- If `your_app_name` already exists, Vedeu will only write new files that do not
24
- exist at the file path. The generated files are a skeleton Vedeu client
25
- application. Let's take a look at these files individually.
24
+ If `your_app_name` already exists, Vedeu will only write new files
25
+ that do not exist at the file path. The generated files are a skeleton
26
+ Vedeu client application. Let's take a look at these files
27
+ individually.
26
28
 
27
29
  ```bash
28
30
  |
@@ -59,38 +61,41 @@ application. Let's take a look at these files individually.
59
61
 
60
62
  ### app/controllers/
61
63
 
62
- The controllers directory is the place to store the events and behaviour logic
63
- of your application. It will manage the choosing of views and models based on
64
- previous choices. Think of them as the orchestrators of your application.
64
+ The controllers directory is the place to store the events and
65
+ behaviour logic of your application. It will manage the choosing of
66
+ views and models based on previous choices. Think of them as the
67
+ orchestrators of your application.
65
68
 
66
- In web applications, the controller typically handles the routed request and
67
- interacts with the models and sets up the views. In Vedeu, it does much the
68
- same, minus the requests.
69
+ In web applications, the controller typically handles the routed
70
+ request and interacts with the models and sets up the views. In Vedeu,
71
+ it does much the same, minus the requests.
69
72
 
70
73
  ### app/helpers/
71
74
 
72
- Ruby on Rails has a concept of helpers which are not very object-oriented, but
73
- allow you to share functionality/behaviour across multiple views. Vedeu uses
74
- this concept as it will be familiar to many Rails developers and might be
75
- helpful to beginners.
75
+ Ruby on Rails has a concept of helpers which are not very
76
+ object-oriented, but allow you to share functionality/behaviour across
77
+ multiple views. Vedeu uses this concept as it will be familiar to many
78
+ Rails developers and might be helpful to beginners.
76
79
 
77
80
  ### app/models/
78
81
 
79
- Much like `lib`, this directory is for your application logic code. Some people
80
- prefer to use `app/models`, others like to use `lib`. Some even use both!
82
+ Much like `lib`, this directory is for your application logic code.
83
+ Some people prefer to use `app/models`, others like to use `lib`. Some
84
+ even use both!
81
85
 
82
86
  ### app/models/keymaps/
83
87
 
84
- This will contain the global keymap (which affects all of your application)
85
- plus any specific interface keymaps which only affect a certain interface when
86
- in focus. By default the global keymap contains a few simple definitions:
88
+ This will contain the global keymap (which affects all of your
89
+ application) plus any specific interface keymaps which only affect a
90
+ certain interface when in focus. By default the global keymap contains
91
+ a few simple definitions:
87
92
 
88
93
  - **`q`**
89
94
 
90
- **Quit**. Internally triggers the :_exit_ system event which in turn requests
91
- the application stops. This triggers the event :cleanup which the client
92
- application can bind to and perform any tidying up it wishes to perform
93
- before exiting.
95
+ **Quit**. Internally triggers the :_exit_ system event which in turn
96
+ requests the application stops. This triggers the event :cleanup
97
+ which the client application can bind to and perform any tidying up
98
+ it wishes to perform before exiting.
94
99
 
95
100
  - **`<esc>`**
96
101
 
@@ -106,30 +111,31 @@ in focus. By default the global keymap contains a few simple definitions:
106
111
 
107
112
  ### app/views/
108
113
 
109
- This will contain classes which produce the views needed by Vedeu to make your
110
- application come alive!
114
+ This will contain classes which produce the views needed by Vedeu to
115
+ make your application come alive!
111
116
 
112
117
  ### app/views/interfaces/
113
118
 
114
- This will contain the information Vedeu needs to draw the various interfaces
115
- and views of your application.
119
+ This will contain the information Vedeu needs to draw the various
120
+ interfaces and views of your application.
116
121
 
117
122
  ### app/views/templates/
118
123
 
119
- This will house the templates your application will use to display views. You
120
- can populate templates with generic view information and supplement it with
121
- variable data from your application.
124
+ This will house the templates your application will use to display
125
+ views. You can populate templates with generic view information and
126
+ supplement it with variable data from your application.
122
127
 
123
128
  ### bin/
124
129
 
125
- This will contain executable Ruby scripts (or Bash, or shell language of your
126
- choice) which will launch your application or provide command-line behaviours.
130
+ This will contain executable Ruby scripts (or Bash, or shell language
131
+ of your choice) which will launch your application or provide
132
+ command-line behaviours.
127
133
 
128
134
  ### config/
129
135
 
130
- This will contain any configuration your application needs to run, plus the
131
- configuration for Vedeu. This configuration affects the way Vedeu works with
132
- your application.
136
+ This will contain any configuration your application needs to run,
137
+ plus the configuration for Vedeu. This configuration affects the way
138
+ Vedeu works with your application.
133
139
 
134
140
  ### lib/
135
141
 
@@ -138,28 +144,28 @@ This is for code your application may use to support code you have in
138
144
 
139
145
  ### test/
140
146
 
141
- This is for the tests you might write to help ensure your application executes
142
- in the way you expect.
147
+ This is for the tests you might write to help ensure your application
148
+ executes in the way you expect.
143
149
 
144
150
  ### vendor/
145
151
 
146
- This is for third-party code which your application might want to ship with.
147
- Usually you will include various Ruby gems to provide functionality, but you
148
- might want to do something special.
152
+ This is for third-party code which your application might want to
153
+ ship with. Usually you will include various Ruby gems to provide
154
+ functionality, but you might want to do something special.
149
155
 
150
156
 
151
157
  ## Adding a new view to your application
152
158
 
153
159
  The following command will build a new view within your application.
154
160
  Substitute `some_view_name` for your desired application name. As with
155
- generating a new application, If `some_view_name` already exists, Vedeu will
156
- only write new files that do not exist at the file path.
161
+ generating a new application, If `some_view_name` already exists,
162
+ Vedeu will only write new files that do not exist at the file path.
157
163
 
158
164
  cd your_app_name
159
165
  vedeu view some_view_name
160
166
 
161
- The generated files are skeleton Vedeu view files. Let's talk about the files it
162
- will create and populate:
167
+ The generated files are skeleton Vedeu view files. Let's talk about
168
+ the files it will create and populate:
163
169
 
164
170
  ```bash
165
171
  |
data/docs/object_graph.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # @title Producing an object graph of Vedeu
2
2
 
3
- Sometimes I find looking at the project as a graph helps me to understand the
4
- relationship between the various objects. To achieve this, I use Yard's graph
5
- options. If this sort of thing floats your boat too, and you have the
6
- appropriate software installed:
3
+ Sometimes I find looking at the project as a graph helps me to
4
+ understand the relationship between the various objects. To achieve
5
+ this, I use Yard's graph options. If this sort of thing floats your
6
+ boat too, and you have the appropriate software installed:
7
7
 
8
8
  ```shell
9
9
  yard graph --full --dependencies --private --protected --dot --file vedeu.dot
data/lib/vedeu/all.rb CHANGED
@@ -25,7 +25,6 @@ require 'vedeu/output/output'
25
25
  require 'vedeu/output/viewport'
26
26
  require 'vedeu/output/wordwrap'
27
27
  require 'vedeu/output/refresh/refresh'
28
- require 'vedeu/output/refresh/refresh_group'
29
28
  require 'vedeu/output/renderers/all'
30
29
 
31
30
  require 'vedeu/esc/all'
@@ -42,6 +41,7 @@ require 'vedeu/distributed/all'
42
41
  require 'vedeu/editor/all'
43
42
  require 'vedeu/events/all'
44
43
  require 'vedeu/geometry/all'
44
+ require 'vedeu/groups/all'
45
45
  require 'vedeu/input/all'
46
46
  require 'vedeu/menus/all'
47
47
  require 'vedeu/templating/all'
@@ -55,8 +55,8 @@ module Vedeu
55
55
  def_delegators Vedeu::Geometry::DSL, :geometry
56
56
 
57
57
  # @!method group
58
- # @see Vedeu::DSL::Group.group
59
- def_delegators Vedeu::DSL::Group, :group
58
+ # @see Vedeu::Groups::DSL.group
59
+ def_delegators Vedeu::Groups::DSL, :group
60
60
 
61
61
  # @!method keymap
62
62
  # @see Vedeu::DSL::Keymap.keymap
@@ -146,8 +146,8 @@ module Vedeu
146
146
  def_delegators Vedeu::Clear::Interface, :clear_by_name
147
147
 
148
148
  # @!method clear_by_group
149
- # @see Vedeu::Clear::Group.render
150
- def_delegators Vedeu::Clear::Group, :clear_by_group
149
+ # @see Vedeu::Groups::Clear.render
150
+ def_delegators Vedeu::Groups::Clear, :clear_by_group
151
151
 
152
152
  # @!method hide_cursor
153
153
  # @see Vedeu::Cursors::Cursor#hide
@@ -162,16 +162,16 @@ module Vedeu
162
162
  def_delegators Vedeu::Cursors::Cursor, :toggle_cursor
163
163
 
164
164
  # @!method hide_group
165
- # @see Vedeu::Models::Group#hide
166
- def_delegators Vedeu::Models::Group, :hide_group
165
+ # @see Vedeu::Groups::Group#hide
166
+ def_delegators Vedeu::Groups::Group, :hide_group
167
167
 
168
168
  # @!method show_group
169
- # @see Vedeu::Models::Group#show
170
- def_delegators Vedeu::Models::Group, :show_group
169
+ # @see Vedeu::Groups::Group#show
170
+ def_delegators Vedeu::Groups::Group, :show_group
171
171
 
172
172
  # @!method toggle_group
173
- # @see Vedeu::Models::Group#toggle
174
- def_delegators Vedeu::Models::Group, :toggle_group
173
+ # @see Vedeu::Groups::Group#toggle
174
+ def_delegators Vedeu::Groups::Group, :toggle_group
175
175
 
176
176
  # @!method hide_interface
177
177
  # @see Vedeu::Models::Interface#hide
@@ -100,8 +100,8 @@ module Vedeu
100
100
  # Vedeu.groups
101
101
  #
102
102
  # @!method groups
103
- # @return [Vedeu::Models::Groups]
104
- def_delegators Vedeu::Models::Groups, :groups
103
+ # @return [Vedeu::Groups::Repository]
104
+ def_delegators Vedeu::Groups::Repository, :groups
105
105
 
106
106
  # Manipulate the repository of interfaces.
107
107
  #
@@ -16,6 +16,11 @@ module Vedeu
16
16
  goto!
17
17
  end
18
18
 
19
+ # @return [TrueClass]
20
+ def setup_aliases!
21
+ Vedeu.bind_alias(:_action_, :_goto_)
22
+ end
23
+
19
24
  private
20
25
 
21
26
  # :nocov:
@@ -25,8 +30,6 @@ module Vedeu
25
30
  Vedeu.bind(:_goto_) do |controller, action, **args|
26
31
  Vedeu::Runtime::Router.goto(controller, action, **args)
27
32
  end
28
-
29
- Vedeu.bind_alias(:_action_, :_goto_)
30
33
  end
31
34
 
32
35
  # :nocov:
@@ -24,8 +24,21 @@ module Vedeu
24
24
  true
25
25
  end
26
26
 
27
+ # Setup aliases for certain registered events.
28
+ # This method is called by Vedeu.
29
+ #
30
+ # @return [TrueClass]
31
+ def setup_aliases!
32
+ Vedeu::Bindings::Application.setup_aliases!
33
+ Vedeu::Bindings::Movement.setup_aliases!
34
+ Vedeu::Bindings::Visibility.setup_aliases!
35
+
36
+ true
37
+ end
38
+
27
39
  end # Bindings
28
40
 
29
- end # Vedeu
41
+ Vedeu::Bindings.setup!
42
+ Vedeu::Bindings.setup_aliases!
30
43
 
31
- Vedeu::Bindings.setup!
44
+ end # Vedeu