vedeu 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +40 -0
- data/README.md +1 -0
- data/docs/dsl.md +24 -24
- data/lib/vedeu/all.rb +21 -44
- data/lib/vedeu/api.rb +13 -13
- data/lib/vedeu/application/application_controller.rb +2 -0
- data/lib/vedeu/bindings/movement.rb +53 -18
- data/lib/vedeu/bindings/refresh.rb +1 -1
- data/lib/vedeu/bindings/system.rb +2 -2
- data/lib/vedeu/bindings/visibility.rb +3 -3
- data/lib/vedeu/borders/all.rb +13 -0
- data/lib/vedeu/borders/border.rb +209 -202
- data/lib/vedeu/{dsl/border.rb → borders/dsl.rb} +15 -15
- data/lib/vedeu/{null/border.rb → borders/null.rb} +9 -9
- data/lib/vedeu/borders/render.rb +347 -0
- data/lib/vedeu/borders/repository.rb +19 -0
- data/lib/vedeu/buffers/all.rb +13 -0
- data/lib/vedeu/buffers/buffer.rb +182 -176
- data/lib/vedeu/{null/buffer.rb → buffers/null.rb} +8 -8
- data/lib/vedeu/buffers/repository.rb +24 -0
- data/lib/vedeu/buffers/virtual_buffer.rb +2 -2
- data/lib/vedeu/cursors/all.rb +11 -0
- data/lib/vedeu/cursors/cursor.rb +276 -0
- data/lib/vedeu/cursors/refresh.rb +84 -0
- data/lib/vedeu/cursors/repository.rb +34 -0
- data/lib/vedeu/dsl/interface.rb +9 -9
- data/lib/vedeu/dsl/shared.rb +11 -11
- data/lib/vedeu/{exceptions.rb → error.rb} +2 -2
- data/lib/vedeu/esc/esc.rb +1 -1
- data/lib/vedeu/geometry/all.rb +18 -0
- data/lib/vedeu/geometry/area.rb +170 -160
- data/lib/vedeu/geometry/coordinate.rb +61 -39
- data/lib/vedeu/geometry/dimension.rb +139 -132
- data/lib/vedeu/{dsl/geometry.rb → geometry/dsl.rb} +11 -11
- data/lib/vedeu/geometry/generic_coordinate.rb +159 -153
- data/lib/vedeu/geometry/geometry.rb +310 -212
- data/lib/vedeu/geometry/grid.rb +73 -69
- data/lib/vedeu/{null/geometry.rb → geometry/null.rb} +10 -10
- data/lib/vedeu/geometry/position.rb +124 -120
- data/lib/vedeu/geometry/repository.rb +19 -0
- data/lib/vedeu/input/editor/document.rb +2 -2
- data/lib/vedeu/internal_api.rb +8 -8
- data/lib/vedeu/models/escape.rb +2 -2
- data/lib/vedeu/models/interface.rb +1 -1
- data/lib/vedeu/models/page.rb +89 -0
- data/lib/vedeu/models/row.rb +66 -0
- data/lib/vedeu/models/toggleable.rb +1 -1
- data/lib/vedeu/models/views/char.rb +7 -6
- data/lib/vedeu/models/views/line.rb +1 -1
- data/lib/vedeu/models/views/view.rb +2 -2
- data/lib/vedeu/options.rb +19 -0
- data/lib/vedeu/output/clear/named_interface.rb +1 -1
- data/lib/vedeu/output/direct.rb +1 -1
- data/lib/vedeu/output/presentation.rb +2 -1
- data/lib/vedeu/output/viewport.rb +3 -3
- data/lib/vedeu/repositories/model.rb +9 -1
- data/lib/vedeu/repositories/repository.rb +5 -0
- data/lib/vedeu/terminal/terminal.rb +3 -3
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/borders/border_test.rb +299 -291
- data/test/lib/vedeu/{dsl/border_test.rb → borders/dsl_test.rb} +6 -6
- data/test/lib/vedeu/{null/border_test.rb → borders/null_test.rb} +6 -6
- data/test/lib/vedeu/borders/render_test.rb +125 -0
- data/test/lib/vedeu/borders/repository_test.rb +17 -0
- data/test/lib/vedeu/buffers/buffer_test.rb +116 -112
- data/test/lib/vedeu/{null/buffer_test.rb → buffers/null_test.rb} +5 -5
- data/test/lib/vedeu/buffers/repository_test.rb +18 -0
- data/test/lib/vedeu/cursors/cursor_test.rb +370 -0
- data/test/lib/vedeu/cursors/refresh_test.rb +69 -0
- data/test/lib/vedeu/cursors/repository_test.rb +41 -0
- data/test/lib/vedeu/dsl/interface_test.rb +5 -5
- data/test/lib/vedeu/{exceptions_test.rb → error_test.rb} +0 -0
- data/test/lib/vedeu/geometry/area_test.rb +141 -137
- data/test/lib/vedeu/geometry/coordinate_test.rb +93 -89
- data/test/lib/vedeu/geometry/dimension_test.rb +137 -133
- data/test/lib/vedeu/{dsl/geometry_test.rb → geometry/dsl_test.rb} +17 -17
- data/test/lib/vedeu/geometry/generic_coordinate_test.rb +32 -28
- data/test/lib/vedeu/geometry/geometry_test.rb +282 -157
- data/test/lib/vedeu/geometry/grid_test.rb +35 -31
- data/test/lib/vedeu/{null/geometry_test.rb → geometry/null_test.rb} +5 -5
- data/test/lib/vedeu/geometry/position_test.rb +146 -142
- data/test/lib/vedeu/geometry/repository_test.rb +19 -0
- data/test/lib/vedeu/input/editor/document_test.rb +1 -1
- data/test/lib/vedeu/models/escape_test.rb +1 -1
- data/test/lib/vedeu/models/interface_test.rb +2 -2
- data/test/lib/vedeu/models/page_test.rb +235 -0
- data/test/lib/vedeu/models/row_test.rb +111 -0
- data/test/lib/vedeu/models/views/char_test.rb +3 -3
- data/test/lib/vedeu/options_test.rb +57 -0
- data/test/lib/vedeu/output/clear/named_interface_test.rb +1 -1
- data/test/lib/vedeu/output/renderers/json_test.rb +1 -1
- data/test/lib/vedeu/output/viewport_test.rb +15 -9
- data/test/lib/vedeu/refresh/refresh_buffer_test.rb +12 -12
- data/test/lib/vedeu/repositories/repositories_test.rb +1 -1
- data/test/lib/vedeu/repositories/repository_test.rb +7 -0
- data/test/lib/vedeu/terminal/terminal_test.rb +1 -1
- data/test/test_helper.rb +1 -1
- data/vedeu.gemspec +2 -2
- metadata +57 -63
- data/lib/vedeu/borders/borders.rb +0 -15
- data/lib/vedeu/borders/render_border.rb +0 -331
- data/lib/vedeu/buffers/buffers.rb +0 -20
- data/lib/vedeu/cursor/cursor.rb +0 -174
- data/lib/vedeu/cursor/cursors.rb +0 -30
- data/lib/vedeu/cursor/move.rb +0 -239
- data/lib/vedeu/cursor/reposition.rb +0 -78
- data/lib/vedeu/geometry/geometries.rb +0 -15
- data/lib/vedeu/refresh/refresh_cursor.rb +0 -92
- data/test/lib/vedeu/borders/borders_test.rb +0 -13
- data/test/lib/vedeu/borders/render_border_test.rb +0 -121
- data/test/lib/vedeu/buffers/buffers_test.rb +0 -14
- data/test/lib/vedeu/cursor/cursor_test.rb +0 -246
- data/test/lib/vedeu/cursor/cursors_test.rb +0 -37
- data/test/lib/vedeu/cursor/move_test.rb +0 -301
- data/test/lib/vedeu/cursor/reposition_test.rb +0 -63
- data/test/lib/vedeu/geometry/geometries_test.rb +0 -15
- data/test/lib/vedeu/refresh/refresh_cursor_test.rb +0 -65
@@ -1,49 +1,71 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
|
4
|
-
#
|
5
|
-
class Coordinate
|
3
|
+
module Geometry
|
6
4
|
|
7
|
-
|
5
|
+
# Crudely corrects out of range values.
|
6
|
+
#
|
7
|
+
class Coordinate
|
8
8
|
|
9
|
-
|
10
|
-
:x_position,
|
11
|
-
:xn
|
9
|
+
extend Forwardable
|
12
10
|
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
def_delegators :x,
|
12
|
+
:x_position,
|
13
|
+
:xn
|
16
14
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
# @param oy [Fixnum]
|
21
|
-
# @param ox [Fixnum]
|
22
|
-
# @return [Vedeu::Coordinate]
|
23
|
-
def initialize(name, oy, ox)
|
24
|
-
@name = name
|
25
|
-
@ox = ox
|
26
|
-
@oy = oy
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
# Provide an instance of Vedeu::GenericCoordinate to determine correct x
|
32
|
-
# related coordinates.
|
33
|
-
#
|
34
|
-
# @return [Vedeu::GenericCoordinate]
|
35
|
-
def x
|
36
|
-
@x ||= Vedeu::GenericCoordinate.new(name: @name, offset: @ox, type: :x)
|
37
|
-
end
|
15
|
+
def_delegators :y,
|
16
|
+
:y_position,
|
17
|
+
:yn
|
38
18
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
@
|
45
|
-
|
19
|
+
# Returns a new instance of Vedeu::Geometry::Coordinate.
|
20
|
+
#
|
21
|
+
# @param name [String]
|
22
|
+
# @param oy [Fixnum]
|
23
|
+
# @param ox [Fixnum]
|
24
|
+
# @return [Vedeu::Geometry::Coordinate]
|
25
|
+
def initialize(name, oy, ox)
|
26
|
+
@name = name
|
27
|
+
@ox = ox
|
28
|
+
@oy = oy
|
29
|
+
end
|
30
|
+
|
31
|
+
protected
|
32
|
+
|
33
|
+
# @!attribute [r] name
|
34
|
+
# @return [String]
|
35
|
+
attr_reader :name
|
36
|
+
|
37
|
+
# @!attribute [rw] ox
|
38
|
+
# @return [Fixnum]
|
39
|
+
attr_accessor :ox
|
40
|
+
|
41
|
+
# @!attribute [rw] oy
|
42
|
+
# @return [Fixnum]
|
43
|
+
attr_accessor :oy
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
# Provide an instance of Vedeu::Geometry::GenericCoordinate to determine
|
48
|
+
# correct x related coordinates.
|
49
|
+
#
|
50
|
+
# @return [Vedeu::Geometry::GenericCoordinate]
|
51
|
+
def x
|
52
|
+
@x ||= Vedeu::Geometry::GenericCoordinate.new(name: name,
|
53
|
+
offset: ox,
|
54
|
+
type: :x)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Provide an instance of Vedeu::Geometry::GenericCoordinate to determine
|
58
|
+
# correct y related coordinates.
|
59
|
+
#
|
60
|
+
# @return [Vedeu::Geometry::GenericCoordinate]
|
61
|
+
def y
|
62
|
+
@y ||= Vedeu::Geometry::GenericCoordinate.new(name: name,
|
63
|
+
offset: oy,
|
64
|
+
type: :y)
|
65
|
+
end
|
66
|
+
|
67
|
+
end # Coordinate
|
46
68
|
|
47
|
-
end #
|
69
|
+
end # Geometry
|
48
70
|
|
49
71
|
end # Vedeu
|
@@ -1,168 +1,175 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
|
4
|
-
#
|
5
|
-
class Dimension
|
3
|
+
module Geometry
|
6
4
|
|
7
|
-
#
|
8
|
-
# @return [Array<Fixnum>]
|
9
|
-
def self.pair(attributes = {})
|
10
|
-
new(attributes).pair
|
11
|
-
end
|
12
|
-
|
13
|
-
# Returns a new instance of Vedeu::Dimension.
|
14
|
-
#
|
15
|
-
# @param attributes [Hash<Symbol => Fixnum, NilClass>]
|
16
|
-
# @option attributes d [Fixnum|NilClass] The starting value (y or x).
|
17
|
-
# @option attributes dn [Fixnum|NilClass] The ending value (yn or xn).
|
18
|
-
# @option attributes d_dn [Fixnum|NilClass] A width or a height.
|
19
|
-
# @option attributes default [Fixnum|NilClass] The terminal width or height.
|
20
|
-
# @option attributes options [Hash]
|
21
|
-
# @return [Vedeu::Dimension]
|
22
|
-
def initialize(attributes = {})
|
23
|
-
@attributes = defaults.merge!(attributes)
|
24
|
-
|
25
|
-
@attributes.each { |key, value| instance_variable_set("@#{key}", value) }
|
26
|
-
end
|
27
|
-
|
28
|
-
# Fetch the starting coordinate.
|
5
|
+
# A Dimension is either the height or width of an entity.
|
29
6
|
#
|
30
|
-
|
31
|
-
def d1
|
32
|
-
dimension[0] < 1 ? 1 : dimension[0]
|
33
|
-
end
|
7
|
+
class Dimension
|
34
8
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
9
|
+
# @param (see #initialize)
|
10
|
+
# @return [Array<Fixnum>]
|
11
|
+
def self.pair(attributes = {})
|
12
|
+
new(attributes).pair
|
13
|
+
end
|
41
14
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
15
|
+
# Returns a new instance of Vedeu::Geometry::Dimension.
|
16
|
+
#
|
17
|
+
# @param attributes [Hash<Symbol => Fixnum, NilClass>]
|
18
|
+
# @option attributes d [Fixnum|NilClass] The starting value (y or x).
|
19
|
+
# @option attributes dn [Fixnum|NilClass] The ending value (yn or xn).
|
20
|
+
# @option attributes d_dn [Fixnum|NilClass] A width or a height.
|
21
|
+
# @option attributes default [Fixnum|NilClass] The terminal width or
|
22
|
+
# height.
|
23
|
+
# @option attributes options [Hash]
|
24
|
+
# @return [Vedeu::Geometry::Dimension]
|
25
|
+
def initialize(attributes = {})
|
26
|
+
@attributes = defaults.merge!(attributes)
|
27
|
+
|
28
|
+
@attributes.each do |key, value|
|
29
|
+
instance_variable_set("@#{key}", value)
|
30
|
+
end
|
31
|
+
end
|
48
32
|
|
49
|
-
|
33
|
+
# Fetch the starting coordinate.
|
34
|
+
#
|
35
|
+
# @return [Fixnum]
|
36
|
+
def d1
|
37
|
+
dimension[0] < 1 ? 1 : dimension[0]
|
38
|
+
end
|
50
39
|
|
51
|
-
|
52
|
-
|
53
|
-
|
40
|
+
# Fetch the ending coordinate.
|
41
|
+
#
|
42
|
+
# @return [Fixnum]
|
43
|
+
def d2
|
44
|
+
dimension[-1]
|
45
|
+
end
|
46
|
+
|
47
|
+
# Fetch the coordinates.
|
48
|
+
#
|
49
|
+
# @return [Array<Fixnum>]
|
50
|
+
def pair
|
51
|
+
dimension
|
52
|
+
end
|
54
53
|
|
55
|
-
|
56
|
-
# @return [Fixnum|NilClass]
|
57
|
-
attr_reader :dn
|
54
|
+
protected
|
58
55
|
|
59
|
-
|
60
|
-
|
61
|
-
|
56
|
+
# @!attribute [r] d
|
57
|
+
# @return [Fixnum|NilClass]
|
58
|
+
attr_reader :d
|
62
59
|
|
63
|
-
|
64
|
-
|
65
|
-
|
60
|
+
# @!attribute [r] dn
|
61
|
+
# @return [Fixnum|NilClass]
|
62
|
+
attr_reader :dn
|
66
63
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
alias_method :maximised?, :maximised
|
64
|
+
# @!attribute [r] d_dn
|
65
|
+
# @return [Fixnum|NilClass]
|
66
|
+
attr_reader :d_dn
|
71
67
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
alias_method :centred?, :centred
|
68
|
+
# @!attribute [r] default
|
69
|
+
# @return [Fixnum|NilClass]
|
70
|
+
attr_reader :default
|
76
71
|
|
77
|
-
|
72
|
+
# @!attribute [r] maximised
|
73
|
+
# @return [Boolean]
|
74
|
+
attr_reader :maximised
|
75
|
+
alias_method :maximised?, :maximised
|
78
76
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
77
|
+
# @!attribute [r] centred
|
78
|
+
# @return [Boolean]
|
79
|
+
attr_reader :centred
|
80
|
+
alias_method :centred?, :centred
|
83
81
|
|
84
|
-
|
85
|
-
[centred_d, centred_dn]
|
82
|
+
private
|
86
83
|
|
87
|
-
|
88
|
-
|
84
|
+
# @return [Array<Fixnum>]
|
85
|
+
def dimension
|
86
|
+
@dimension = if maximised?
|
87
|
+
[1, default]
|
89
88
|
|
90
|
-
|
91
|
-
|
89
|
+
elsif centred? && length?
|
90
|
+
[centred_d, centred_dn]
|
92
91
|
|
93
|
-
|
94
|
-
|
95
|
-
default && length
|
96
|
-
end
|
92
|
+
else
|
93
|
+
[_d, _dn]
|
97
94
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# @return [Boolean]
|
99
|
+
def length?
|
100
|
+
default && length
|
101
|
+
end
|
102
102
|
|
103
|
-
|
104
|
-
|
103
|
+
# @return [Fixnum|NilClass]
|
104
|
+
def length
|
105
|
+
if d && dn
|
106
|
+
(d..dn).size
|
105
107
|
|
106
|
-
|
107
|
-
|
108
|
+
elsif d_dn
|
109
|
+
d_dn
|
108
110
|
|
111
|
+
elsif default
|
112
|
+
default
|
113
|
+
|
114
|
+
end
|
109
115
|
end
|
110
|
-
end
|
111
116
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
117
|
+
# Ascertains the centred starting coordinate.
|
118
|
+
#
|
119
|
+
# @return [Fixnum]
|
120
|
+
def centred_d
|
121
|
+
(default / 2) - (length / 2)
|
122
|
+
end
|
118
123
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
124
|
+
# Ascertains the centred ending coordinate.
|
125
|
+
#
|
126
|
+
# @return [Fixnum]
|
127
|
+
def centred_dn
|
128
|
+
(default / 2) + (length / 2)
|
129
|
+
end
|
125
130
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
131
|
+
# Fetch the starting coordinate, or use 1 when not set.
|
132
|
+
#
|
133
|
+
# @return [Fixnum]
|
134
|
+
def _d
|
135
|
+
d || 1
|
136
|
+
end
|
132
137
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
138
|
+
# Fetch the ending coordinate.
|
139
|
+
#
|
140
|
+
# @return [Fixnum]
|
141
|
+
def _dn
|
142
|
+
if dn
|
143
|
+
dn
|
139
144
|
|
140
|
-
|
141
|
-
|
145
|
+
elsif d.nil? && d_dn
|
146
|
+
d_dn
|
142
147
|
|
143
|
-
|
144
|
-
|
148
|
+
elsif d && d_dn
|
149
|
+
(d + d_dn) - 1
|
145
150
|
|
146
|
-
|
147
|
-
|
151
|
+
else
|
152
|
+
default
|
148
153
|
|
154
|
+
end
|
149
155
|
end
|
150
|
-
end
|
151
156
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
157
|
+
# Returns the default options/attributes for this class.
|
158
|
+
#
|
159
|
+
# @return [Hash<Symbol => NilClass,Boolean>]
|
160
|
+
def defaults
|
161
|
+
{
|
162
|
+
d: nil,
|
163
|
+
dn: nil,
|
164
|
+
d_dn: nil,
|
165
|
+
default: nil,
|
166
|
+
centred: false,
|
167
|
+
maximised: false,
|
168
|
+
}
|
169
|
+
end
|
170
|
+
|
171
|
+
end # Dimension
|
172
|
+
|
173
|
+
end # Geometry
|
167
174
|
|
168
175
|
end # Vedeu
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Vedeu
|
2
2
|
|
3
|
-
module
|
3
|
+
module Geometry
|
4
4
|
|
5
5
|
# Geometry allows the configuration of the position and size of an
|
6
6
|
# interface. Within Vedeu, as the same for ANSI terminals, has the origin at
|
@@ -68,7 +68,7 @@ module Vedeu
|
|
68
68
|
# yn +--------------+ # south: yn + 1
|
69
69
|
# south
|
70
70
|
#
|
71
|
-
class
|
71
|
+
class DSL
|
72
72
|
|
73
73
|
include Vedeu::DSL
|
74
74
|
include Vedeu::DSL::Use
|
@@ -83,18 +83,18 @@ module Vedeu
|
|
83
83
|
# geometry belongs.
|
84
84
|
# @param block [Proc]
|
85
85
|
# @raise [Vedeu::Error::InvalidSyntax] The required block was not given.
|
86
|
-
# @return [Vedeu::Geometry]
|
86
|
+
# @return [Vedeu::Geometry::Geometry]
|
87
87
|
def self.geometry(name, &block)
|
88
88
|
fail Vedeu::Error::InvalidSyntax, 'block not given' unless block_given?
|
89
89
|
|
90
|
-
Vedeu::Geometry.build(name: name, &block).store
|
90
|
+
Vedeu::Geometry::Geometry.build(name: name, &block).store
|
91
91
|
end
|
92
92
|
|
93
|
-
# Returns an instance of
|
93
|
+
# Returns an instance of Vedeu::Geometry::DSL.
|
94
94
|
#
|
95
|
-
# @param model [Vedeu::Geometry]
|
95
|
+
# @param model [Vedeu::Geometry::Geometry]
|
96
96
|
# @param client [Object]
|
97
|
-
# @return [Vedeu::DSL
|
97
|
+
# @return [Vedeu::Geometry::DSL]
|
98
98
|
def initialize(model, client = nil)
|
99
99
|
@model = model
|
100
100
|
@client = client
|
@@ -137,7 +137,7 @@ module Vedeu
|
|
137
137
|
# between 1 and 12 inclusive.
|
138
138
|
# @return [Fixnum|Vedeu::Error::OutOfRange]
|
139
139
|
def columns(value)
|
140
|
-
Vedeu::Grid.columns(value)
|
140
|
+
Vedeu::Geometry::Grid.columns(value)
|
141
141
|
end
|
142
142
|
|
143
143
|
# Specify the number of characters/rows/lines tall the interface will be.
|
@@ -170,7 +170,7 @@ module Vedeu
|
|
170
170
|
# between 1 and 12 inclusive.
|
171
171
|
# @return [Fixnum]
|
172
172
|
def rows(value)
|
173
|
-
Vedeu::Grid.rows(value)
|
173
|
+
Vedeu::Geometry::Grid.rows(value)
|
174
174
|
end
|
175
175
|
|
176
176
|
# Specify the number of characters/columns wide the interface will be.
|
@@ -269,8 +269,8 @@ module Vedeu
|
|
269
269
|
end
|
270
270
|
alias_method :yn=, :yn
|
271
271
|
|
272
|
-
end #
|
272
|
+
end # DSL
|
273
273
|
|
274
|
-
end #
|
274
|
+
end # Geometry
|
275
275
|
|
276
276
|
end # Vedeu
|