gosu_wrapper 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/gosu_wrapper.rb +3 -3
- data/lib/gosu_wrapper/grid_helpers.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2ba1a40ecea32f174168345fe06685be79a7666
|
4
|
+
data.tar.gz: b6197fde20333ac8079c0bec985e15c1acbdb974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5f73310d7ea4c25023d0d760aa610e48132ae63853a82f7cec6f38f9a400f528ab85e55793cad89c8307e5976ca230ba5d9746e537ea81a99db3ef7ba7ce53f
|
7
|
+
data.tar.gz: feddd489ed677ebb7bce1ffef019cf2cc339563ee2162dc88faa69361da56bb5474ceea2ad38669f2ab1c8b0f6e8942d942c2c5ff4950d95e040f8f3d6a21a43
|
data/README.md
CHANGED
@@ -150,7 +150,7 @@ They can be called with `#call_helper(name_sym, *args, **keywords, &blk)`
|
|
150
150
|
|
151
151
|
The required parameters differ between the helpers.
|
152
152
|
|
153
|
-
1. `div_window_into(num_cols:, num_rows:, margin:)`
|
153
|
+
1. `div_window_into(num_cols:, num_rows:, margin:)`
|
154
154
|
- splits the window into a grid but doesn't draw it
|
155
155
|
- returns a matrix-like hash which can be passed to `draw_grid`
|
156
156
|
as the `sections` argument
|
data/lib/gosu_wrapper.rb
CHANGED
@@ -25,9 +25,9 @@ class GosuWrapper
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def add_default_helpers
|
28
|
-
add_helper :div_window_into, GridHelpers.div_window_into
|
29
|
-
add_helper :div_section_into, GridHelpers.div_section_into
|
30
|
-
add_helper :draw_grid, GridHelpers.draw_grid
|
28
|
+
add_helper :div_window_into, &GridHelpers.div_window_into
|
29
|
+
add_helper :div_section_into, &GridHelpers.div_section_into
|
30
|
+
add_helper :draw_grid, &GridHelpers.draw_grid
|
31
31
|
end
|
32
32
|
|
33
33
|
# Delegate "set_<attr>" setters to window
|
data/lib/version.rb
CHANGED