Top Level Namespace
Defined Under Namespace
Modules: ETL, FreeZipcodeData
Classes: CsvSource, SqliteRam
Instance Method Summary
collapse
Instance Method Details
#limit(count) ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/etl/common.rb', line 16
def limit(count)
count = Integer(count || -1)
return if count == -1
transform do |row|
@counter ||= 0
@counter += 1
@counter > count ? nil : row
end
end
|
#show_me ⇒ Object
9
10
11
12
13
14
|
# File 'lib/etl/common.rb', line 9
def show_me
transform do |row|
ap row
row
end
end
|