lib/bmg.rb in bmg-0.17.8 vs lib/bmg.rb in bmg-0.18.0
- old
+ new
@@ -1,13 +1,19 @@
require 'path'
require 'predicate'
require 'forwardable'
+require 'set'
module Bmg
def in_memory(enumerable, type = Type::ANY)
Relation::InMemory.new(type, enumerable).spied(main_spy)
end
module_function :in_memory
+
+ def text_file(path, options = {}, type = Type::ANY)
+ Reader::TextFile.new(type, path, options).spied(main_spy)
+ end
+ module_function :text_file
def csv(path, options = {}, type = Type::ANY)
Reader::Csv.new(type, path, options).spied(main_spy)
end
module_function :csv