vedeu 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +9 -0
- data/README.md +1 -1
- data/docs/api.md +60 -67
- data/docs/configuration.md +8 -5
- data/docs/events.md +31 -15
- data/docs/events/application.md +12 -0
- data/docs/events/document.md +57 -0
- data/docs/events/drb.md +43 -0
- data/docs/events/focus.md +24 -0
- data/docs/events/menu.md +57 -0
- data/docs/events/movement.md +57 -0
- data/docs/events/refresh.md +25 -0
- data/docs/events/system.md +90 -0
- data/docs/events/visibility.md +68 -0
- data/lib/vedeu.rb +2 -2
- data/lib/vedeu/all.rb +3 -2
- data/lib/vedeu/api.rb +18 -18
- data/lib/vedeu/application/controller.rb +1 -1
- data/lib/vedeu/application/helper.rb +1 -1
- data/lib/vedeu/application/view.rb +1 -1
- data/lib/vedeu/bindings/application.rb +1 -12
- data/lib/vedeu/bindings/bindings.rb +3 -1
- data/lib/vedeu/bindings/document.rb +9 -62
- data/lib/vedeu/bindings/drb.rb +12 -56
- data/lib/vedeu/bindings/focus.rb +3 -28
- data/lib/vedeu/bindings/menus.rb +10 -66
- data/lib/vedeu/bindings/movement.rb +4 -69
- data/lib/vedeu/bindings/refresh.rb +3 -33
- data/lib/vedeu/bindings/system.rb +14 -100
- data/lib/vedeu/bindings/visibility.rb +20 -71
- data/lib/vedeu/borders/all.rb +4 -3
- data/lib/vedeu/borders/border.rb +39 -33
- data/lib/vedeu/borders/dsl.rb +40 -33
- data/lib/vedeu/borders/null.rb +2 -2
- data/lib/vedeu/borders/render.rb +29 -24
- data/lib/vedeu/borders/repository.rb +2 -2
- data/lib/vedeu/buffers/all.rb +8 -7
- data/lib/vedeu/buffers/buffer.rb +47 -39
- data/lib/vedeu/buffers/null.rb +2 -2
- data/lib/vedeu/buffers/refresh.rb +4 -3
- data/lib/vedeu/buffers/virtual_buffer.rb +122 -118
- data/lib/vedeu/buffers/virtual_buffers.rb +62 -56
- data/lib/vedeu/colours/background.rb +2 -1
- data/lib/vedeu/colours/colour.rb +21 -19
- data/lib/vedeu/colours/foreground.rb +2 -1
- data/lib/vedeu/colours/repository.rb +6 -5
- data/lib/vedeu/colours/translator.rb +39 -35
- data/lib/vedeu/configuration/api.rb +59 -51
- data/lib/vedeu/configuration/cli.rb +9 -7
- data/lib/vedeu/configuration/configuration.rb +41 -32
- data/lib/vedeu/cursors/cursor.rb +1 -1
- data/lib/vedeu/cursors/refresh.rb +20 -16
- data/lib/vedeu/distributed/server.rb +8 -6
- data/lib/vedeu/distributed/subprocess.rb +90 -86
- data/lib/vedeu/distributed/uri.rb +4 -3
- data/lib/vedeu/dsl/composition.rb +2 -2
- data/lib/vedeu/dsl/group.rb +4 -4
- data/lib/vedeu/dsl/interface.rb +5 -5
- data/lib/vedeu/dsl/presentation.rb +2 -2
- data/lib/vedeu/dsl/text.rb +1 -1
- data/lib/vedeu/editor/cropper.rb +4 -4
- data/lib/vedeu/editor/cursor.rb +6 -4
- data/lib/vedeu/editor/document.rb +20 -18
- data/lib/vedeu/editor/editor.rb +2 -2
- data/lib/vedeu/editor/line.rb +10 -5
- data/lib/vedeu/editor/lines.rb +2 -2
- data/lib/vedeu/internal_api.rb +4 -4
- data/lib/vedeu/models/focus.rb +197 -191
- data/lib/vedeu/models/group.rb +171 -159
- data/lib/vedeu/models/groups.rb +14 -10
- data/lib/vedeu/models/interface.rb +116 -110
- data/lib/vedeu/models/interfaces.rb +24 -20
- data/lib/vedeu/models/toggleable.rb +4 -4
- data/lib/vedeu/models/views/char.rb +1 -1
- data/lib/vedeu/models/views/composition.rb +1 -1
- data/lib/vedeu/models/views/line.rb +1 -1
- data/lib/vedeu/models/views/stream.rb +1 -1
- data/lib/vedeu/models/views/view.rb +1 -1
- data/lib/vedeu/null/interface.rb +1 -1
- data/lib/vedeu/null/view.rb +1 -1
- data/lib/vedeu/output/clear/named_interface.rb +1 -1
- data/lib/vedeu/output/compressor.rb +78 -73
- data/lib/vedeu/output/direct.rb +61 -57
- data/lib/vedeu/output/output.rb +34 -29
- data/lib/vedeu/output/{presentation.rb → presentation/presentation.rb} +2 -1
- data/lib/vedeu/output/presentation/style.rb +64 -18
- data/lib/vedeu/output/presentation/styles.rb +39 -0
- data/lib/vedeu/output/renderers/html.rb +2 -2
- data/lib/vedeu/output/renderers/json.rb +2 -1
- data/lib/vedeu/output/renderers/terminal.rb +3 -3
- data/lib/vedeu/output/renderers/text.rb +3 -3
- data/lib/vedeu/output/text.rb +186 -180
- data/lib/vedeu/output/wordwrap.rb +142 -138
- data/lib/vedeu/refresh/refresh.rb +2 -2
- data/lib/vedeu/templating/helpers.rb +11 -6
- data/lib/vedeu/templating/view_template.rb +1 -1
- data/lib/vedeu/terminal/terminal.rb +2 -2
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/borders/render_test.rb +1 -1
- data/test/lib/vedeu/buffers/buffer_test.rb +16 -14
- data/test/lib/vedeu/buffers/virtual_buffer_test.rb +105 -101
- data/test/lib/vedeu/buffers/virtual_buffers_test.rb +43 -39
- data/test/lib/vedeu/colours/colour_test.rb +4 -4
- data/test/lib/vedeu/cursors/cursor_test.rb +2 -2
- data/test/lib/vedeu/cursors/repository_test.rb +3 -3
- data/test/lib/vedeu/distributed/subprocess_test.rb +33 -29
- data/test/lib/vedeu/dsl/group_test.rb +3 -3
- data/test/lib/vedeu/dsl/interface_test.rb +6 -5
- data/test/lib/vedeu/dsl/line_test.rb +4 -2
- data/test/lib/vedeu/dsl/presentation_test.rb +2 -2
- data/test/lib/vedeu/dsl/text_test.rb +8 -8
- data/test/lib/vedeu/editor/document_test.rb +10 -6
- data/test/lib/vedeu/input/keymap_test.rb +1 -10
- data/test/lib/vedeu/models/focus_test.rb +177 -170
- data/test/lib/vedeu/models/group_test.rb +99 -95
- data/test/lib/vedeu/models/groups_test.rb +13 -9
- data/test/lib/vedeu/models/interface_test.rb +93 -87
- data/test/lib/vedeu/models/interfaces_test.rb +24 -20
- data/test/lib/vedeu/models/views/char_test.rb +2 -2
- data/test/lib/vedeu/models/views/line_test.rb +11 -7
- data/test/lib/vedeu/models/views/stream_test.rb +1 -1
- data/test/lib/vedeu/models/views/view_test.rb +1 -1
- data/test/lib/vedeu/output/clear/named_group_test.rb +1 -1
- data/test/lib/vedeu/output/clear/named_interface_test.rb +3 -1
- data/test/lib/vedeu/output/compressor_test.rb +126 -122
- data/test/lib/vedeu/output/direct_test.rb +49 -43
- data/test/lib/vedeu/output/output_test.rb +35 -31
- data/test/lib/vedeu/output/{presentation_test.rb → presentation/presentation_test.rb} +11 -7
- data/test/lib/vedeu/output/presentation/style_test.rb +88 -48
- data/test/lib/vedeu/output/presentation/styles_test.rb +84 -0
- data/test/lib/vedeu/output/text_test.rb +109 -105
- data/test/lib/vedeu/output/viewport_test.rb +3 -1
- data/test/lib/vedeu/output/wordwrap_test.rb +209 -205
- data/test/lib/vedeu/refresh/refresh_test.rb +3 -1
- data/test/lib/vedeu/templating/helpers_test.rb +6 -6
- data/test/lib/vedeu/templating/view_template_test.rb +1 -1
- metadata +17 -8
- data/lib/vedeu/output/style.rb +0 -76
- data/test/lib/vedeu/output/style_test.rb +0 -120
@@ -1,31 +1,35 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
|
4
|
-
#
|
5
|
-
class Interfaces < Vedeu::Repository
|
3
|
+
module Models
|
6
4
|
|
7
|
-
|
5
|
+
# Allows the storing of interfaces and views.
|
6
|
+
#
|
7
|
+
class Interfaces < Vedeu::Repository
|
8
8
|
|
9
|
-
|
10
|
-
real Vedeu::Interface
|
9
|
+
singleton_class.send(:alias_method, :interfaces, :repository)
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
null Vedeu::Null::Interface
|
12
|
+
real Vedeu::Models::Interface
|
13
|
+
|
14
|
+
# Returns the interfaces in zindex order.
|
15
|
+
#
|
16
|
+
# @example
|
17
|
+
# Vedeu.interfaces.zindexed
|
18
|
+
#
|
19
|
+
# @return [Array<Vedeu::Models::Interface>]
|
20
|
+
# @see Vedeu::DSL::Interface#zindex
|
21
|
+
def zindexed
|
22
|
+
all.sort_by(&:zindex)
|
23
|
+
end
|
24
|
+
|
25
|
+
end # Interfaces
|
22
26
|
|
23
|
-
|
27
|
+
class Interface
|
24
28
|
|
25
|
-
|
29
|
+
repo Vedeu::Models::Interfaces.repository
|
26
30
|
|
27
|
-
|
31
|
+
end # Interface
|
28
32
|
|
29
|
-
end #
|
33
|
+
end # Models
|
30
34
|
|
31
35
|
end # Vedeu
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
# This module provides behaviour for certain classes which can be
|
4
|
-
# between being shown and hidden.
|
3
|
+
# This module provides behaviour for certain classes which can be
|
4
|
+
# toggled between being shown and hidden.
|
5
5
|
#
|
6
|
-
# Currently using this are: {Vedeu::Cursors::Cursor},
|
7
|
-
# {Vedeu::Interface}.
|
6
|
+
# Currently using this are: {Vedeu::Cursors::Cursor},
|
7
|
+
# {Vedeu::Models::Group} and {Vedeu::Models::Interface}.
|
8
8
|
#
|
9
9
|
module Toggleable
|
10
10
|
|
@@ -37,7 +37,7 @@ module Vedeu
|
|
37
37
|
# @option attributes colour [Vedeu::Colours::Colour]
|
38
38
|
# @option attributes parent [Vedeu::Views::Line]
|
39
39
|
# @option attributes position [Vedeu::Geometry::Position]
|
40
|
-
# @option attributes style [Vedeu::Style]
|
40
|
+
# @option attributes style [Vedeu::Presentation::Style]
|
41
41
|
# @option attributes value [String]
|
42
42
|
# @return [Vedeu::Views::Char]
|
43
43
|
def initialize(attributes = {})
|
@@ -25,7 +25,7 @@ module Vedeu
|
|
25
25
|
# @param attributes [Hash]
|
26
26
|
# @option attributes client [void]
|
27
27
|
# @option attributes colour [Vedeu::Colours::Colour]
|
28
|
-
# @option attributes style [Vedeu::Style]
|
28
|
+
# @option attributes style [Vedeu::Presentation::Style]
|
29
29
|
# @option attributes value [Vedeu::Views::ViewCollection]
|
30
30
|
# @return [Vedeu::Views::Composition]
|
31
31
|
def initialize(attributes = {})
|
@@ -27,7 +27,7 @@ module Vedeu
|
|
27
27
|
# @param attributes [Hash]
|
28
28
|
# @option attributes colour [Vedeu::Colours::Colour]
|
29
29
|
# @option attributes parent [Vedeu::Views::View]
|
30
|
-
# @option attributes style [Vedeu::Style]
|
30
|
+
# @option attributes style [Vedeu::Presentation::Style]
|
31
31
|
# @option attributes value [Vedeu::Views::Streams]
|
32
32
|
# @return [Vedeu::Views::Line]
|
33
33
|
def initialize(attributes = {})
|
@@ -32,7 +32,7 @@ module Vedeu
|
|
32
32
|
#
|
33
33
|
# @param attributes [Hash]
|
34
34
|
# @option attributes colour [Vedeu::Colours::Colour]
|
35
|
-
# @option attributes style [Vedeu::Style]
|
35
|
+
# @option attributes style [Vedeu::Presentation::Style]
|
36
36
|
# @option attributes parent [Vedeu::Views::Line]
|
37
37
|
# @option attributes value [String]
|
38
38
|
# @return [Vedeu::Views::Stream]
|
@@ -45,7 +45,7 @@ module Vedeu
|
|
45
45
|
# @option attributes value [Vedeu::Views::Lines]
|
46
46
|
# @option attributes name [String]
|
47
47
|
# @option attributes parent [Vedeu::Views::Composition]
|
48
|
-
# @option attributes style [Vedeu::Style]
|
48
|
+
# @option attributes style [Vedeu::Presentation::Style]
|
49
49
|
# @option attributes zindex [Fixnum]
|
50
50
|
# @return [Vedeu::Views::View]
|
51
51
|
def initialize(attributes = {})
|
data/lib/vedeu/null/interface.rb
CHANGED
data/lib/vedeu/null/view.rb
CHANGED
@@ -1,85 +1,90 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
# @param output [Array<Array<Vedeu::Views::Char>>]
|
10
|
-
# @return [String]
|
11
|
-
def self.render(output)
|
12
|
-
new(output).render
|
13
|
-
end
|
14
|
-
|
15
|
-
# Returns a new instance of Vedeu::Compressor.
|
3
|
+
module Output
|
4
|
+
|
5
|
+
# During the conversion of a Vedeu::Views::Char object into a
|
6
|
+
# string of escape sequences, this class removes multiple
|
7
|
+
# occurences of the same escape sequence, resulting in a smaller
|
8
|
+
# payload being sent to the renderer.
|
16
9
|
#
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
@
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
# @note
|
26
|
-
# Takes approximately ~25ms for 2100 chars. (2015-07-25)
|
27
|
-
# @return [String]
|
28
|
-
def render
|
29
|
-
if Vedeu::Configuration.compression?
|
30
|
-
compress
|
31
|
-
|
32
|
-
else
|
33
|
-
uncompress
|
10
|
+
class Compressor
|
11
|
+
|
12
|
+
# @param output [Array<Array<Vedeu::Views::Char>>]
|
13
|
+
# @return [String]
|
14
|
+
def self.render(output)
|
15
|
+
new(output).render
|
16
|
+
end
|
34
17
|
|
18
|
+
# Returns a new instance of Vedeu::Output::Compressor.
|
19
|
+
#
|
20
|
+
# @param output [Array<Array<Vedeu::Views::Char>>]
|
21
|
+
# @return [Vedeu::Output::Compressor]
|
22
|
+
def initialize(output)
|
23
|
+
@output = output
|
24
|
+
@colour = ''
|
25
|
+
@style = ''
|
35
26
|
end
|
36
|
-
end
|
37
27
|
|
38
|
-
|
28
|
+
# @note
|
29
|
+
# Takes approximately ~25ms for 2100 chars. (2015-07-25)
|
30
|
+
# @return [String]
|
31
|
+
def render
|
32
|
+
if Vedeu::Configuration.compression?
|
33
|
+
compress
|
39
34
|
|
40
|
-
|
41
|
-
|
42
|
-
|
35
|
+
else
|
36
|
+
uncompress
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
43
40
|
|
44
|
-
|
41
|
+
protected
|
42
|
+
|
43
|
+
# @!attribute [r] output
|
44
|
+
# @return [Array<Array<Vedeu::Views::Char>>]
|
45
|
+
attr_reader :output
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
# @return [String]
|
50
|
+
def compress
|
51
|
+
out = ''
|
52
|
+
Array(output).flatten.each do |char|
|
53
|
+
out << char.position.to_s
|
54
|
+
out << colour_for(char)
|
55
|
+
out << style_for(char)
|
56
|
+
out << char.value
|
57
|
+
end
|
58
|
+
out
|
59
|
+
end
|
45
60
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
out
|
51
|
-
out << colour_for(char)
|
52
|
-
out << style_for(char)
|
53
|
-
out << char.value
|
61
|
+
# @return [String]
|
62
|
+
def uncompress
|
63
|
+
out = ''
|
64
|
+
Array(output).flatten.each { |char| out << char.to_s }
|
65
|
+
out
|
54
66
|
end
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
#
|
75
|
-
|
76
|
-
|
77
|
-
return '' if char.style == @style
|
78
|
-
|
79
|
-
@style = char.style
|
80
|
-
@style.to_s
|
81
|
-
end
|
82
|
-
|
83
|
-
end # Compressor
|
67
|
+
|
68
|
+
# @param char [Vedeu::Views::Char]
|
69
|
+
# @return [String]
|
70
|
+
def colour_for(char)
|
71
|
+
return '' if char.colour == @colour
|
72
|
+
|
73
|
+
@colour = char.colour
|
74
|
+
@colour.to_s
|
75
|
+
end
|
76
|
+
|
77
|
+
# @param char [Vedeu::Views::Char]
|
78
|
+
# @return [String]
|
79
|
+
def style_for(char)
|
80
|
+
return '' if char.style == @style
|
81
|
+
|
82
|
+
@style = char.style
|
83
|
+
@style.to_s
|
84
|
+
end
|
85
|
+
|
86
|
+
end # Compressor
|
87
|
+
|
88
|
+
end # Output
|
84
89
|
|
85
90
|
end # Vedeu
|
data/lib/vedeu/output/direct.rb
CHANGED
@@ -1,62 +1,66 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# @param value [String]
|
8
|
-
# @param x [Fixnum]
|
9
|
-
# @param y [Fixnum]
|
10
|
-
# @return [String]
|
11
|
-
def self.write(value:, x:, y:)
|
12
|
-
new(value: value, x: x, y: y).write
|
13
|
-
end
|
14
|
-
|
15
|
-
# Returns a new instance of Vedeu::Direct.
|
3
|
+
module Output
|
4
|
+
|
5
|
+
# Write a string directly to the terminal at defined coordinates.
|
16
6
|
#
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
@
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
7
|
+
class Direct
|
8
|
+
|
9
|
+
# @param value [String]
|
10
|
+
# @param x [Fixnum]
|
11
|
+
# @param y [Fixnum]
|
12
|
+
# @return [String]
|
13
|
+
def self.write(value:, x:, y:)
|
14
|
+
new(value: value, x: x, y: y).write
|
15
|
+
end
|
16
|
+
|
17
|
+
# Returns a new instance of Vedeu::Output::Direct.
|
18
|
+
#
|
19
|
+
# @param value [String]
|
20
|
+
# @param x [Fixnum]
|
21
|
+
# @param y [Fixnum]
|
22
|
+
# @return [Vedeu::Output::Direct]
|
23
|
+
def initialize(value:, x:, y:)
|
24
|
+
@value = value || ''
|
25
|
+
@x = x || 1
|
26
|
+
@y = y || 1
|
27
|
+
end
|
28
|
+
|
29
|
+
# @return [String]
|
30
|
+
def write
|
31
|
+
Vedeu::Terminal.output(output)
|
32
|
+
|
33
|
+
output
|
34
|
+
end
|
35
|
+
|
36
|
+
protected
|
37
|
+
|
38
|
+
# @attribute [r] value
|
39
|
+
# @return [String]
|
40
|
+
attr_reader :value
|
41
|
+
|
42
|
+
# @attribute [r] x
|
43
|
+
# @return [Fixnum]
|
44
|
+
attr_reader :x
|
45
|
+
|
46
|
+
# @attribute [r] y
|
47
|
+
# @return [Fixnum]
|
48
|
+
attr_reader :y
|
49
|
+
|
50
|
+
private
|
51
|
+
|
52
|
+
# @return [String]
|
53
|
+
def output
|
54
|
+
(Array(position) + Array(value)).join
|
55
|
+
end
|
56
|
+
|
57
|
+
# @return [String]
|
58
|
+
def position
|
59
|
+
Vedeu::Geometry::Position.new(y, x).to_s
|
60
|
+
end
|
61
|
+
|
62
|
+
end # Direct
|
63
|
+
|
64
|
+
end # Output
|
61
65
|
|
62
66
|
end # Vedeu
|
data/lib/vedeu/output/output.rb
CHANGED
@@ -1,43 +1,48 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
|
4
|
-
#
|
5
|
-
class Output
|
3
|
+
module Output
|
6
4
|
|
7
|
-
#
|
5
|
+
# Sends the output to the renderers.
|
8
6
|
#
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
class Output
|
8
|
+
|
9
|
+
# Writes output to the defined renderers.
|
10
|
+
#
|
11
|
+
# @return [Array|String]
|
12
|
+
# @see #initialize
|
13
|
+
def self.render(output)
|
14
|
+
new(output).render
|
15
|
+
end
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
# Return a new instance of Vedeu::Output::Output.
|
18
|
+
#
|
19
|
+
# @param output [Array<Array<Vedeu::Views::Char>>]
|
20
|
+
# @return [Vedeu::Output::Output]
|
21
|
+
def initialize(output)
|
22
|
+
@output = output
|
23
|
+
end
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
# Send the view to the renderers.
|
26
|
+
#
|
27
|
+
# @return [Array]
|
28
|
+
def render
|
29
|
+
if Vedeu::Configuration.drb?
|
30
|
+
Vedeu.trigger(:_drb_store_output_, output)
|
31
|
+
|
32
|
+
# Vedeu::Renderers::HTML.
|
33
|
+
# to_file(Vedeu::Buffers::VirtualBuffers.retrieve)
|
34
|
+
end
|
29
35
|
|
30
|
-
|
36
|
+
Vedeu.renderers.render(output) if Vedeu.ready?
|
31
37
|
end
|
32
38
|
|
33
|
-
|
34
|
-
end
|
39
|
+
protected
|
35
40
|
|
36
|
-
|
41
|
+
# @!attribute [r] output
|
42
|
+
# @return [Array<Array<Vedeu::Views::Char>>]
|
43
|
+
attr_reader :output
|
37
44
|
|
38
|
-
#
|
39
|
-
# @return [Array<Array<Vedeu::Views::Char>>]
|
40
|
-
attr_reader :output
|
45
|
+
end # Output
|
41
46
|
|
42
47
|
end # Output
|
43
48
|
|