named_parameters 0.1.1 → 0.1.2
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.
- data/README +10 -4
- metadata +3 -3
data/README
CHANGED
@@ -9,12 +9,12 @@ Surprisingly it is this easy:
|
|
9
9
|
---
|
10
10
|
|
11
11
|
== Use it
|
12
|
-
|
12
|
+
=== First, include NamedParameters:
|
13
13
|
class AnyClass
|
14
14
|
include NamedParameters
|
15
15
|
end
|
16
16
|
|
17
|
-
|
17
|
+
=== Second, call the macro:
|
18
18
|
|
19
19
|
|
20
20
|
class AnyClass
|
@@ -24,7 +24,7 @@ Surprisingly it is this easy:
|
|
24
24
|
end
|
25
25
|
|
26
26
|
|
27
|
-
|
27
|
+
=== Last, but not least, define your method:
|
28
28
|
class AnyClass
|
29
29
|
include NamedParameters
|
30
30
|
|
@@ -88,6 +88,12 @@ Blocks are not interfered by named_parameters. You can just use them as usual.
|
|
88
88
|
|
89
89
|
---
|
90
90
|
|
91
|
+
== Acknowledgements
|
92
|
+
|
93
|
+
Kudos to Juris Galang and his gem named-parameters. (http://www.rubygems.org/gems/named-parameters)
|
94
|
+
Defenitely have a look at this gem also, if you want to use named parameters.
|
95
|
+
|
91
96
|
== Changelog
|
97
|
+
[0.1.2] Changed headings in documentation
|
98
|
+
[0.1.1] Added documentation for blocks
|
92
99
|
[0.1.0] First release
|
93
|
-
[0.1.1] Added documentation for blocks
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: named_parameters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &25091196 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version: 3.0.0
|
25
25
|
type: :development
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *25091196
|
28
28
|
description: ! 'By including the NamedParameters module into your class/module the
|
29
29
|
''named_parameters'' macro is
|
30
30
|
|