Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
unstick fasta IO
  • Loading branch information
cjfields committed Nov 16, 2014
1 parent d702bfc commit 9a2626d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Bio/Role/IO.pm6
Expand Up @@ -7,8 +7,8 @@ role Bio::Role::IO does Bio::Role::Temp {

# At the moment we force all IO consumers to initialize-io if they have this
# simple signature
submethod BUILD(:$fh?, :$file?) {
self.initialize-io(:$fh, :$file);
submethod BUILD(:$fh?, :$file?, *%args) {
self.initialize-io(:$fh, :$file, |%args);
}

# generic IO initializer; more specific ones (e.g. has unique parameter
Expand Down
1 change: 1 addition & 0 deletions lib/Bio/SeqIO.pm6
Expand Up @@ -30,6 +30,7 @@ class Bio::SeqIO does Bio::Role::Pluggable['SeqIO']
# mix in the plugin module
self does ::($plugin);
}
self.initialize-io(|%args);
}

method next-Seq { ... }
Expand Down
2 changes: 1 addition & 1 deletion lib/Bio/SeqIO/fasta.pm6
Expand Up @@ -21,7 +21,7 @@ role Bio::SeqIO::fasta does Bio::Role::SeqStream {
has $.block = $!width; # NYI

# Note multimethod signature
multi method initialize_io(:$width?, *%args) {
multi method initialize-io(:$width?, *%args) {
$!width = $width;
nextsame;
}
Expand Down

0 comments on commit 9a2626d

Please sign in to comment.