get_args 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/get_args.gemspec +1 -1
- data/lib/argument_list.rb +6 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/get_args.gemspec
CHANGED
data/lib/argument_list.rb
CHANGED
@@ -4,8 +4,8 @@ module GetArgs
|
|
4
4
|
@arguments = args_array.map { |arg| Argument.new(arg) }
|
5
5
|
end
|
6
6
|
|
7
|
-
def method_missing(*args)
|
8
|
-
@arguments.send(*args)
|
7
|
+
def method_missing(*args, &block)
|
8
|
+
@arguments.send(*args, &block)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -24,5 +24,9 @@ module GetArgs
|
|
24
24
|
def multiple?
|
25
25
|
name.to_s.slice(0,1) == '*'
|
26
26
|
end
|
27
|
+
|
28
|
+
def to_s
|
29
|
+
name
|
30
|
+
end
|
27
31
|
end
|
28
32
|
end
|