vedeu 0.8.6 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -2
  3. data/.travis.yml +1 -1
  4. data/README.md +2 -6
  5. data/config/rubocop_enabled.yml +0 -6
  6. data/docs/dsl/by_method/clock_time.md +4 -1
  7. data/lib/vedeu/application/application_controller.rb +2 -2
  8. data/lib/vedeu/application/controller.rb +3 -3
  9. data/lib/vedeu/borders/border.rb +6 -6
  10. data/lib/vedeu/borders/dsl.rb +26 -26
  11. data/lib/vedeu/borders/refresh.rb +2 -2
  12. data/lib/vedeu/borders/title.rb +4 -4
  13. data/lib/vedeu/buffers/refresh.rb +8 -7
  14. data/lib/vedeu/buffers/terminal.rb +1 -1
  15. data/lib/vedeu/buffers/view.rb +2 -2
  16. data/lib/vedeu/cells/clear.rb +1 -1
  17. data/lib/vedeu/cells/cursor.rb +6 -6
  18. data/lib/vedeu/cells/empty.rb +2 -2
  19. data/lib/vedeu/cells/escape.rb +6 -6
  20. data/lib/vedeu/coercers/alignment.rb +1 -1
  21. data/lib/vedeu/coercers/colour_attributes.rb +8 -16
  22. data/lib/vedeu/colours/background.rb +4 -8
  23. data/lib/vedeu/colours/colour.rb +4 -4
  24. data/lib/vedeu/colours/foreground.rb +4 -8
  25. data/lib/vedeu/colours/repository.rb +1 -1
  26. data/lib/vedeu/colours/translator.rb +6 -6
  27. data/lib/vedeu/common.rb +1 -1
  28. data/lib/vedeu/configuration/api.rb +15 -15
  29. data/lib/vedeu/configuration/configuration.rb +8 -8
  30. data/lib/vedeu/cursors/coordinate.rb +4 -4
  31. data/lib/vedeu/cursors/cursor.rb +2 -2
  32. data/lib/vedeu/distributed/client.rb +2 -2
  33. data/lib/vedeu/distributed/server.rb +8 -10
  34. data/lib/vedeu/distributed/subprocess.rb +1 -1
  35. data/lib/vedeu/distributed/uri.rb +1 -1
  36. data/lib/vedeu/dsl/cursors.rb +2 -2
  37. data/lib/vedeu/dsl/elements.rb +5 -5
  38. data/lib/vedeu/dsl/helpers/align.rb +1 -1
  39. data/lib/vedeu/dsl/helpers/attributes.rb +1 -1
  40. data/lib/vedeu/dsl/presentation.rb +15 -15
  41. data/lib/vedeu/dsl/view.rb +1 -1
  42. data/lib/vedeu/dsl/views.rb +1 -1
  43. data/lib/vedeu/editor/cursor.rb +1 -1
  44. data/lib/vedeu/editor/line.rb +2 -2
  45. data/lib/vedeu/editor/lines.rb +2 -2
  46. data/lib/vedeu/esc/borders.rb +19 -19
  47. data/lib/vedeu/esc/colours.rb +1 -1
  48. data/lib/vedeu/events/aliases.rb +3 -15
  49. data/lib/vedeu/events/event.rb +14 -14
  50. data/lib/vedeu/events/repository.rb +1 -1
  51. data/lib/vedeu/geometries/area/area.rb +5 -5
  52. data/lib/vedeu/geometries/area/dimension.rb +1 -1
  53. data/lib/vedeu/geometries/dsl/dsl.rb +7 -7
  54. data/lib/vedeu/geometries/geometry.rb +2 -2
  55. data/lib/vedeu/geometries/position.rb +6 -6
  56. data/lib/vedeu/groups/clear.rb +2 -2
  57. data/lib/vedeu/groups/group.rb +2 -2
  58. data/lib/vedeu/input/dsl.rb +1 -1
  59. data/lib/vedeu/input/key.rb +3 -3
  60. data/lib/vedeu/input/mapper.rb +2 -2
  61. data/lib/vedeu/input/read.rb +2 -4
  62. data/lib/vedeu/input/store.rb +1 -17
  63. data/lib/vedeu/input/translator.rb +49 -45
  64. data/lib/vedeu/interfaces/clear.rb +3 -3
  65. data/lib/vedeu/interfaces/dsl.rb +4 -4
  66. data/lib/vedeu/interfaces/interface.rb +2 -2
  67. data/lib/vedeu/logging/clock_time.rb +3 -3
  68. data/lib/vedeu/logging/debug.rb +14 -6
  69. data/lib/vedeu/logging/log.rb +1 -1
  70. data/lib/vedeu/menus/dsl.rb +2 -2
  71. data/lib/vedeu/menus/menu.rb +9 -9
  72. data/lib/vedeu/models/focus.rb +11 -11
  73. data/lib/vedeu/models/page.rb +1 -1
  74. data/lib/vedeu/models/row.rb +1 -1
  75. data/lib/vedeu/models/toggleable.rb +7 -7
  76. data/lib/vedeu/null/generic.rb +29 -29
  77. data/lib/vedeu/output/compressor_cache.rb +1 -11
  78. data/lib/vedeu/output/viewport.rb +4 -12
  79. data/lib/vedeu/output/write.rb +3 -3
  80. data/lib/vedeu/plugins/plugin.rb +1 -1
  81. data/lib/vedeu/presentation/colour.rb +1 -1
  82. data/lib/vedeu/presentation/presentation.rb +1 -1
  83. data/lib/vedeu/presentation/style.rb +4 -4
  84. data/lib/vedeu/renderers/all.rb +1 -14
  85. data/lib/vedeu/renderers/options.rb +1 -1
  86. data/lib/vedeu/repositories/all.rb +1 -0
  87. data/lib/vedeu/repositories/assemblage.rb +1 -1
  88. data/lib/vedeu/repositories/collection.rb +4 -4
  89. data/lib/vedeu/repositories/registerable.rb +2 -2
  90. data/lib/vedeu/repositories/repositories.rb +1 -1
  91. data/lib/vedeu/repositories/repository.rb +3 -3
  92. data/lib/vedeu/repositories/storage.rb +38 -0
  93. data/lib/vedeu/repositories/store.rb +5 -22
  94. data/lib/vedeu/runtime/application.rb +1 -1
  95. data/lib/vedeu/runtime/flags.rb +3 -3
  96. data/lib/vedeu/runtime/router.rb +3 -18
  97. data/lib/vedeu/templating/helpers.rb +5 -3
  98. data/lib/vedeu/templating/view_template.rb +26 -18
  99. data/lib/vedeu/terminal/terminal.rb +5 -5
  100. data/lib/vedeu/version.rb +1 -1
  101. data/lib/vedeu/views/chars.rb +1 -1
  102. data/lib/vedeu/views/composition.rb +4 -4
  103. data/lib/vedeu/views/default_attributes.rb +2 -2
  104. data/lib/vedeu/views/line.rb +6 -6
  105. data/lib/vedeu/views/lines.rb +1 -1
  106. data/lib/vedeu/views/stream.rb +6 -6
  107. data/lib/vedeu/views/streams.rb +1 -1
  108. data/lib/vedeu/views/view.rb +4 -4
  109. data/test/lib/vedeu/borders/border_test.rb +1 -1
  110. data/test/lib/vedeu/borders/caption_test.rb +1 -1
  111. data/test/lib/vedeu/borders/dsl_test.rb +2 -3
  112. data/test/lib/vedeu/borders/refresh_test.rb +1 -1
  113. data/test/lib/vedeu/borders/title_test.rb +1 -1
  114. data/test/lib/vedeu/buffers/buffer_test.rb +7 -7
  115. data/test/lib/vedeu/buffers/refresh_test.rb +1 -1
  116. data/test/lib/vedeu/colours/background_test.rb +27 -0
  117. data/test/lib/vedeu/colours/foreground_test.rb +27 -0
  118. data/test/lib/vedeu/cursors/cursor_test.rb +3 -3
  119. data/test/lib/vedeu/cursors/move_test.rb +1 -1
  120. data/test/lib/vedeu/cursors/refresh_test.rb +1 -1
  121. data/test/lib/vedeu/cursors/reposition_test.rb +2 -2
  122. data/test/lib/vedeu/dsl/view_test.rb +6 -8
  123. data/test/lib/vedeu/editor/cropper_test.rb +1 -1
  124. data/test/lib/vedeu/editor/cursor_test.rb +1 -1
  125. data/test/lib/vedeu/editor/document_test.rb +1 -1
  126. data/test/lib/vedeu/editor/editor_test.rb +1 -1
  127. data/test/lib/vedeu/events/aliases_test.rb +0 -14
  128. data/test/lib/vedeu/geometries/area/area_test.rb +1 -1
  129. data/test/lib/vedeu/geometries/geometry_test.rb +1 -1
  130. data/test/lib/vedeu/geometries/move_test.rb +1 -1
  131. data/test/lib/vedeu/groups/clear_test.rb +1 -1
  132. data/test/lib/vedeu/groups/dsl_test.rb +1 -1
  133. data/test/lib/vedeu/groups/group_test.rb +1 -1
  134. data/test/lib/vedeu/groups/refresh_test.rb +1 -1
  135. data/test/lib/vedeu/input/capture_test.rb +2 -2
  136. data/test/lib/vedeu/input/store_test.rb +0 -34
  137. data/test/lib/vedeu/interfaces/clear_test.rb +1 -1
  138. data/test/lib/vedeu/interfaces/dsl_test.rb +4 -4
  139. data/test/lib/vedeu/interfaces/interface_test.rb +1 -1
  140. data/test/lib/vedeu/menus/dsl_test.rb +1 -1
  141. data/test/lib/vedeu/null/generic_test.rb +1 -1
  142. data/test/lib/vedeu/output/compressor_cache_test.rb +0 -33
  143. data/test/lib/vedeu/renderers/all_test.rb +0 -8
  144. data/test/lib/vedeu/repositories/repository_test.rb +2 -2
  145. data/test/lib/vedeu/repositories/storage_test.rb +74 -0
  146. data/test/lib/vedeu/repositories/store_test.rb +10 -28
  147. data/test/lib/vedeu/runtime/router_test.rb +0 -8
  148. data/test/lib/vedeu/views/default_attributes_test.rb +5 -5
  149. data/test/lib/vedeu/views/view_test.rb +5 -2
  150. data/test/test_helper.rb +1 -1
  151. data/vedeu.gemspec +1 -1
  152. metadata +7 -4
@@ -28,7 +28,7 @@ module Vedeu
28
28
  def value
29
29
  ' '
30
30
  end
31
- alias_method :text, :value
31
+ alias text value
32
32
 
33
33
  end # Clear
34
34
 
@@ -20,10 +20,10 @@ module Vedeu
20
20
  def null
21
21
  nil
22
22
  end
23
- alias_method :background, :null
24
- alias_method :colour, :null
25
- alias_method :foreground, :null
26
- alias_method :style, :null
23
+ alias background null
24
+ alias colour null
25
+ alias foreground null
26
+ alias style null
27
27
 
28
28
  # Return an empty hash as most escape sequences won't make
29
29
  # sense as JSON.
@@ -32,7 +32,7 @@ module Vedeu
32
32
  def to_h
33
33
  {}.merge!(position.to_h).merge!(value: value)
34
34
  end
35
- alias_method :to_hash, :to_h
35
+ alias to_hash to_h
36
36
 
37
37
  # Return an empty string as most escape sequences won't make
38
38
  # sense as HTML.
@@ -47,7 +47,7 @@ module Vedeu
47
47
  def to_s
48
48
  "#{position}#{value}"
49
49
  end
50
- alias_method :to_str, :to_s
50
+ alias to_str to_s
51
51
 
52
52
  # @return [Symbol]
53
53
  def type
@@ -48,7 +48,7 @@ module Vedeu
48
48
  value == other.value &&
49
49
  colour == other.colour
50
50
  end
51
- alias_method :==, :eql?
51
+ alias == eql?
52
52
 
53
53
  # @return [String]
54
54
  def text
@@ -78,7 +78,7 @@ module Vedeu
78
78
  value: value.to_s,
79
79
  }.merge!(colour.to_h).merge!(position.to_h)
80
80
  end
81
- alias_method :to_hash, :to_h
81
+ alias to_hash to_h
82
82
 
83
83
  # Returns the object represented as HTML.
84
84
  #
@@ -28,10 +28,10 @@ module Vedeu
28
28
  def null
29
29
  nil
30
30
  end
31
- alias_method :background, :null
32
- alias_method :colour, :null
33
- alias_method :foreground, :null
34
- alias_method :style, :null
31
+ alias background null
32
+ alias colour null
33
+ alias foreground null
34
+ alias style null
35
35
 
36
36
  # Return an empty hash as most escape sequences won't make
37
37
  # sense as JSON.
@@ -43,7 +43,7 @@ module Vedeu
43
43
  value: value,
44
44
  }
45
45
  end
46
- alias_method :to_hash, :to_h
46
+ alias to_hash to_h
47
47
 
48
48
  # Return an empty string as most escape sequences won't make
49
49
  # sense as HTML.
@@ -58,7 +58,7 @@ module Vedeu
58
58
  def to_s
59
59
  value
60
60
  end
61
- alias_method :to_str, :to_s
61
+ alias to_str to_s
62
62
 
63
63
  # @return [Symbol]
64
64
  def type
@@ -78,7 +78,7 @@ module Vedeu
78
78
  def eql?(other)
79
79
  self.class == other.class && value == other.value
80
80
  end
81
- alias_method :==, :eql?
81
+ alias == eql?
82
82
 
83
83
  # @return [Boolean]
84
84
  def invalid?
@@ -58,15 +58,11 @@ module Vedeu
58
58
 
59
59
  # @return [Hash]
60
60
  def coerced_background
61
- if background?
62
- {
63
- background: background
64
- }
61
+ return {} unless background?
65
62
 
66
- else
67
- {}
68
-
69
- end
63
+ {
64
+ background: background,
65
+ }
70
66
  end
71
67
 
72
68
  # @return [NilClass|String]
@@ -91,15 +87,11 @@ module Vedeu
91
87
 
92
88
  # @return [Hash]
93
89
  def coerced_foreground
94
- if foreground?
95
- {
96
- foreground: foreground
97
- }
90
+ return {} unless foreground?
98
91
 
99
- else
100
- {}
101
-
102
- end
92
+ {
93
+ foreground: foreground,
94
+ }
103
95
  end
104
96
 
105
97
  # @return [NilClass|String]
@@ -33,21 +33,17 @@ module Vedeu
33
33
  # @return [Hash<Symbol => String>]
34
34
  def to_h
35
35
  {
36
- background: colour.to_s
36
+ background: colour.to_s,
37
37
  }
38
38
  end
39
- alias_method :to_hash, :to_h
39
+ alias to_hash to_h
40
40
 
41
41
  # @param _options [Hash] Ignored.
42
42
  # @return [String]
43
43
  def to_html(_options = {})
44
- if rgb?
45
- "background-color:#{colour};"
46
-
47
- else
48
- ''
44
+ return '' unless rgb?
49
45
 
50
- end
46
+ "background-color:#{colour};"
51
47
  end
52
48
 
53
49
  private
@@ -93,7 +93,7 @@ module Vedeu
93
93
  self.class == other.class && background == other.background &&
94
94
  foreground == other.foreground
95
95
  end
96
- alias_method :==, :eql?
96
+ alias == eql?
97
97
 
98
98
  # @return [Vedeu::Colours::Foreground]
99
99
  def foreground
@@ -118,10 +118,10 @@ module Vedeu
118
118
  # @return [Hash<Symbol => Hash<Symbol => String>>]
119
119
  def to_h
120
120
  {
121
- colour: background.to_h.merge!(foreground.to_h)
121
+ colour: background.to_h.merge!(foreground.to_h),
122
122
  }
123
123
  end
124
- alias_method :to_hash, :to_h
124
+ alias to_hash to_h
125
125
 
126
126
  # Returns both or either of the converted attributes into a
127
127
  # single escape sequence.
@@ -130,7 +130,7 @@ module Vedeu
130
130
  def to_s
131
131
  "#{foreground}#{background}"
132
132
  end
133
- alias_method :to_str, :to_s
133
+ alias to_str to_s
134
134
 
135
135
  private
136
136
 
@@ -33,21 +33,17 @@ module Vedeu
33
33
  # @return [Hash<Symbol => String>]
34
34
  def to_h
35
35
  {
36
- foreground: colour.to_s
36
+ foreground: colour.to_s,
37
37
  }
38
38
  end
39
- alias_method :to_hash, :to_h
39
+ alias to_hash to_h
40
40
 
41
41
  # @param _options [Hash] Ignored.
42
42
  # @return [String]
43
43
  def to_html(_options = {})
44
- if rgb?
45
- "color:#{colour};"
46
-
47
- else
48
- ''
44
+ return '' unless rgb?
49
45
 
50
- end
46
+ "color:#{colour};"
51
47
  end
52
48
 
53
49
  private
@@ -12,7 +12,7 @@ module Vedeu
12
12
  # @!attribute [r] storage
13
13
  # @return [Hash<String => String>]
14
14
  attr_reader :storage
15
- alias_method :all, :storage
15
+ alias all storage
16
16
 
17
17
  # Returns a new instance of Vedeu::Colours::Repository.
18
18
  #
@@ -43,7 +43,7 @@ module Vedeu
43
43
  # @!attribute [r] colour
44
44
  # @return [String]
45
45
  attr_reader :colour
46
- alias_method :value, :colour
46
+ alias value colour
47
47
 
48
48
  # Produces new objects of the correct class from the value,
49
49
  # ignores objects Colours::that have already been coerced.
@@ -76,7 +76,7 @@ module Vedeu
76
76
  def eql?(other)
77
77
  self.class == other.class && colour == other.colour
78
78
  end
79
- alias_method :==, :eql?
79
+ alias == eql?
80
80
 
81
81
  # @return [String]
82
82
  # @see Vedeu::Colours::Translator
@@ -100,8 +100,8 @@ module Vedeu
100
100
 
101
101
  end
102
102
  end
103
- alias_method :to_s, :escape_sequence
104
- alias_method :to_str, :escape_sequence
103
+ alias to_s escape_sequence
104
+ alias to_str escape_sequence
105
105
 
106
106
  private
107
107
 
@@ -219,8 +219,8 @@ module Vedeu
219
219
  def not_implemented
220
220
  fail Vedeu::Error::NotImplemented, 'Subclasses implement this.'
221
221
  end
222
- alias_method :named, :not_implemented
223
- alias_method :repository, :not_implemented
222
+ alias named not_implemented
223
+ alias repository not_implemented
224
224
 
225
225
  # @return [Vedeu::Colours::Validator]
226
226
  def validator
data/lib/vedeu/common.rb CHANGED
@@ -123,7 +123,7 @@ module Vedeu
123
123
 
124
124
  str.split(/::/).map do |namespace|
125
125
  *upper, _ = namespace.split(/([A-Z]+)/).reject(&:empty?).map do |chars|
126
- chars.match(/\p{Lower}/) ? [chars, '_'] : chars
126
+ chars =~ /\p{Lower}/ ? [chars, '_'] : chars
127
127
  end.flatten
128
128
 
129
129
  upper.map(&:downcase).join
@@ -63,7 +63,7 @@ module Vedeu
63
63
  def interactive!(value = true)
64
64
  options[:interactive] = value
65
65
  end
66
- alias_method :interactive, :interactive!
66
+ alias interactive interactive!
67
67
 
68
68
  # Sets boolean to prevent user intervention. This is the same as
69
69
  # setting {include:Vedeu::Config::API#interactive!} to false.
@@ -89,7 +89,7 @@ module Vedeu
89
89
  def standalone!(value = true)
90
90
  options[:interactive] = !value
91
91
  end
92
- alias_method :standalone, :standalone!
92
+ alias standalone standalone!
93
93
 
94
94
  # Sets boolean to run the Vedeu main application loop once. In
95
95
  # effect, using `run_once!` or setting `run_once` to true will
@@ -106,7 +106,7 @@ module Vedeu
106
106
  def run_once!(value = true)
107
107
  options[:once] = value
108
108
  end
109
- alias_method :run_once, :run_once!
109
+ alias run_once run_once!
110
110
 
111
111
  # Sets boolean to run a DRb server.
112
112
  #
@@ -120,7 +120,7 @@ module Vedeu
120
120
  def drb!(value = true)
121
121
  options[:drb] = value
122
122
  end
123
- alias_method :drb, :drb!
123
+ alias drb drb!
124
124
 
125
125
  # Sets the hostname or IP address of the DRb server.
126
126
  #
@@ -186,7 +186,7 @@ module Vedeu
186
186
  def cooked!
187
187
  options[:terminal_mode] = :cooked
188
188
  end
189
- alias_method :cooked, :cooked!
189
+ alias cooked cooked!
190
190
 
191
191
  # Sets the terminal mode to `fake`. Default terminal mode is
192
192
  # `raw`.
@@ -201,7 +201,7 @@ module Vedeu
201
201
  def fake!
202
202
  options[:terminal_mode] = :fake
203
203
  end
204
- alias_method :fake, :fake!
204
+ alias fake fake!
205
205
 
206
206
  # Sets the terminal mode to `raw`. Default terminal mode is
207
207
  # `raw`. Also, see {Vedeu::Config::API#cooked!}
@@ -215,7 +215,7 @@ module Vedeu
215
215
  def raw!
216
216
  options[:terminal_mode] = :raw
217
217
  end
218
- alias_method :raw, :raw!
218
+ alias raw raw!
219
219
 
220
220
  # Sets boolean to enable/disable debugging. Vedeu's default
221
221
  # setting is for debugging to be disabled. Using `debug!` or
@@ -242,7 +242,7 @@ module Vedeu
242
242
  def debug!(value = true)
243
243
  options[:debug] = value
244
244
  end
245
- alias_method :debug, :debug!
245
+ alias debug debug!
246
246
 
247
247
  # Sets the colour mode of the terminal.
248
248
  #
@@ -287,7 +287,7 @@ module Vedeu
287
287
  def height(height = 25)
288
288
  options[:height] = height
289
289
  end
290
- alias_method :height=, :height
290
+ alias height= height
291
291
 
292
292
  # Sets the location of the log file.
293
293
  #
@@ -369,7 +369,7 @@ module Vedeu
369
369
  def profile!(value = true)
370
370
  options[:profile] = value
371
371
  end
372
- alias_method :profile, :profile!
372
+ alias profile profile!
373
373
 
374
374
  # Sets the renderers for Vedeu. Each renderer added must have
375
375
  # the class method '.render' defined as this will be called when
@@ -390,7 +390,7 @@ module Vedeu
390
390
  def renderer(*renderer)
391
391
  options[:renderers] = renderer.flatten
392
392
  end
393
- alias_method :renderers, :renderer
393
+ alias renderers renderer
394
394
 
395
395
  # Override the base path for the application (for locating
396
396
  # templates and other resources). By default the base path is
@@ -487,7 +487,7 @@ module Vedeu
487
487
  def compression(value = true)
488
488
  options[:compression] = value
489
489
  end
490
- alias_method :compression!, :compression
490
+ alias compression! compression
491
491
 
492
492
  # Sets the terminal mode. Valid values can be either ':cooked',
493
493
  # ':fake' or :raw'.
@@ -523,7 +523,7 @@ module Vedeu
523
523
 
524
524
  options[:terminal_mode] = mode
525
525
  end
526
- alias_method :terminal_mode=, :terminal_mode
526
+ alias terminal_mode= terminal_mode
527
527
 
528
528
  # Sets the width of the terminal.
529
529
  #
@@ -542,7 +542,7 @@ module Vedeu
542
542
  def width(width = 80)
543
543
  options[:width] = width
544
544
  end
545
- alias_method :width=, :width
545
+ alias width= width
546
546
 
547
547
  # Sets the background of the terminal.
548
548
  #
@@ -606,7 +606,7 @@ module Vedeu
606
606
  def mouse!(value = true)
607
607
  options[:mouse] = value
608
608
  end
609
- alias_method :mouse, :mouse!
609
+ alias mouse mouse!
610
610
 
611
611
  private
612
612
 
@@ -39,7 +39,7 @@ module Vedeu
39
39
  def compression
40
40
  instance.options[:compression]
41
41
  end
42
- alias_method :compression?, :compression
42
+ alias compression? compression
43
43
 
44
44
  # {include:file:docs/dsl/by_method/configure.md}
45
45
  # @param opts [Hash<Symbol => void>]
@@ -57,7 +57,7 @@ module Vedeu
57
57
  def configuration
58
58
  self
59
59
  end
60
- alias_method :config, :configuration
60
+ alias config configuration
61
61
 
62
62
  # @return [Hash]
63
63
  def colour
@@ -82,7 +82,7 @@ module Vedeu
82
82
  def debug?
83
83
  instance.options[:debug]
84
84
  end
85
- alias_method :debug, :debug?
85
+ alias debug debug?
86
86
 
87
87
  # Returns whether the DRb server is enabled or disabled. Default
88
88
  # is false.
@@ -91,7 +91,7 @@ module Vedeu
91
91
  def drb?
92
92
  instance.options[:drb]
93
93
  end
94
- alias_method :drb, :drb?
94
+ alias drb drb?
95
95
 
96
96
  # Returns the hostname for the DRb server.
97
97
  #
@@ -161,7 +161,7 @@ module Vedeu
161
161
  def interactive?
162
162
  instance.options[:interactive]
163
163
  end
164
- alias_method :interactive, :interactive?
164
+ alias interactive interactive?
165
165
 
166
166
  # Returns the path to the log file.
167
167
  #
@@ -204,7 +204,7 @@ module Vedeu
204
204
  def mouse?
205
205
  instance.options[:mouse]
206
206
  end
207
- alias_method :mouse, :mouse?
207
+ alias mouse mouse?
208
208
 
209
209
  # Returns whether the application will run through its main loop
210
210
  # once or not. Default is false; meaning the application will
@@ -214,7 +214,7 @@ module Vedeu
214
214
  def once?
215
215
  instance.options[:once]
216
216
  end
217
- alias_method :once, :once?
217
+ alias once once?
218
218
 
219
219
  # Returns a boolean indicating whether profiling has been
220
220
  # enabled.
@@ -223,7 +223,7 @@ module Vedeu
223
223
  def profile?
224
224
  instance.options[:profile]
225
225
  end
226
- alias_method :profile, :profile?
226
+ alias profile profile?
227
227
 
228
228
  # Returns the renderers which should receive output.
229
229
  #