nosey 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nosey/report.rb +6 -2
- data/lib/nosey/version.rb +1 -1
- metadata +2 -2
data/lib/nosey/report.rb
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
module Nosey
|
2
2
|
class Report
|
3
|
-
attr_reader :probe_sets
|
4
|
-
|
5
3
|
def initialize
|
6
4
|
yield self if block_given?
|
7
5
|
self
|
8
6
|
end
|
9
7
|
|
8
|
+
# Make sure we end up with a flat array of probe_sets
|
9
|
+
def probe_sets=(probe_sets)
|
10
|
+
@probe_sets = Array(probe_sets).flatten
|
11
|
+
end
|
12
|
+
|
13
|
+
# Grab some probe_sets or an array
|
10
14
|
def probe_sets
|
11
15
|
@probe_sets ||= Array.new
|
12
16
|
end
|
data/lib/nosey/version.rb
CHANGED