freyr 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/freyr/service_group.rb +1 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/freyr/service_group.rb
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
require 'delegate'
|
2
2
|
|
3
3
|
module Freyr
|
4
|
-
class ServiceGroup <
|
4
|
+
class ServiceGroup < Array
|
5
5
|
extend Forwardable
|
6
6
|
service_methods = Service.instance_methods - Class.instance_methods
|
7
7
|
def_delegators :first, *service_methods
|
8
8
|
|
9
|
-
def initialize
|
10
|
-
super([])
|
11
|
-
end
|
12
|
-
|
13
9
|
def find_by_name(n)
|
14
10
|
find {|s| s.name == n}
|
15
11
|
end
|
metadata
CHANGED