method-arguments 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +4 -2
- data/README.md +2 -0
- data/lib/__arguments__.rb +4 -0
- data/lib/__arguments__/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acce0bcf1b6b9aec047eccfb2bab37993fd4890be10f45c723834e14eb7b1912
|
4
|
+
data.tar.gz: b4524ebd4084182cfcee3d2cc7ace24a1f499df25e8e5ed2634ef49bacd1951e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e70271f39d43933f79a5bce4b69efcb914ba0b4769f390afa343d2ff4ce8a013477fb2a8da652b7782c6dba58d9a4f19a68e358514900bace96c895ee06ebf7
|
7
|
+
data.tar.gz: 0642abd42a3b154e310d15602123b6023b4a3ab2b8426bc255930d5776bdaf2e607379bad1c8e395940f8a5e743d0093f2953e75277a03d83938588b434d4c84
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -7,7 +7,7 @@ GEM
|
|
7
7
|
pry (0.12.2)
|
8
8
|
coderay (~> 1.1.0)
|
9
9
|
method_source (~> 0.9.0)
|
10
|
-
rake (12.3.
|
10
|
+
rake (12.3.3)
|
11
11
|
rspec (3.8.0)
|
12
12
|
rspec-core (~> 3.8.0)
|
13
13
|
rspec-expectations (~> 3.8.0)
|
@@ -21,6 +21,7 @@ GEM
|
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
22
|
rspec-support (~> 3.8.0)
|
23
23
|
rspec-support (3.8.2)
|
24
|
+
yard (0.9.20)
|
24
25
|
|
25
26
|
PLATFORMS
|
26
27
|
ruby
|
@@ -29,6 +30,7 @@ DEPENDENCIES
|
|
29
30
|
pry
|
30
31
|
rake
|
31
32
|
rspec
|
33
|
+
yard
|
32
34
|
|
33
35
|
BUNDLED WITH
|
34
|
-
|
36
|
+
1.17.3
|
data/README.md
CHANGED
data/lib/__arguments__.rb
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
module Arguments
|
2
|
+
# Returns an array indicating the arguments given tothe current method.
|
3
|
+
#
|
4
|
+
# @param bdg [Binding] binding in the current scope
|
5
|
+
# @return [Array] array of 2-element arrys of the form `[symbol, value]`
|
2
6
|
def __arguments__(bdg)
|
3
7
|
method_symbol = caller(1,1).first.match(/\`(?<name>[^']*)'/)[:name].to_sym
|
4
8
|
self.method(method_symbol).parameters.map { |e| [e[1], bdg.local_variable_get(e[1])] }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: method-arguments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiro Asari
|
@@ -70,7 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
|
-
|
73
|
+
rubyforge_project:
|
74
|
+
rubygems_version: 2.7.7
|
74
75
|
signing_key:
|
75
76
|
specification_version: 4
|
76
77
|
summary: Access list of arguments passed to the current method
|