Skip to content

Commit

Permalink
#301 XsLine new method
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 21, 2021
1 parent f135bfc commit 290a3c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions eo-parser/src/main/java/org/eolang/parser/Xsline.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,20 @@ public Xsline with(final Iterable<String> sheets) {
);
}

/**
* Add this sheet to the list.
* @param sheet The sheet
* @return New object
* @since 0.1.27
*/
public Xsline with(final XSL sheet) {
return new Xsline(
this.input, this.target,
new Joined<>(sheet, this.xsls),
this.spy
);
}

/**
* Compile it to XML and save to output.
*
Expand Down

0 comments on commit 290a3c5

Please sign in to comment.