Skip to content

Commit

Permalink
Adds major linkage change
Browse files Browse the repository at this point in the history
  • Loading branch information
athityakumar committed Sep 1, 2017
1 parent bee05f8 commit fd08213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/daru/io/link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def register_exporter(function, instance)
def register_importer(function, instance)
define_singleton_method(function) do |*args, &io_block|
case function.to_s
when /\Afrom_/ then instance.new(*args[1..-1], &io_block).from(*args[0])
when /\Aread_/ then instance.new(*args[1..-1], &io_block).read(*args[0])
when /\Afrom_/ then instance.new.from(*args[0]).call(*args[1..-1], &io_block)
when /\Aread_/ then instance.new.read(*args[0]).call(*args[1..-1], &io_block)
end
end
end
Expand Down

0 comments on commit fd08213

Please # to comment.