Skip to content

Add RemoteInput#eof? - #42

Merged
kou merged 1 commit into
red-data-tools:mainfrom
tikkss:add-eof
Nov 22, 2026
Merged

kou merged 1 commit into
red-data-tools:mainfrom
tikkss:add-eof

Conversation

@tikkss

@tikkss tikkss commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

GitHub: GH-5

It's like IO#eof?.

We need this to parse a RemoteInput with REXML, because REXML reads an input until IO#eof? returns true:

RemoteInput.open("https://example.com/data.xml") do |input|
  parser = REXML::Parsers::StreamParser.new(input, listener)
  parser.parse
end

GitHub: red-data-toolsGH-5

It's like `IO#eof?`.

We need this to parse a `RemoteInput` with REXML, because REXML reads
an input until `IO#eof?` returns `true`:

```ruby
RemoteInput.open("https://example.com/data.xml") do |input|
  parser = REXML::Parsers::StreamParser.new(input, listener)
  parser.parse
end
```
@kou
kou merged commit 477e41e into red-data-tools:main Nov 22, 2026
9 checks passed
@tikkss
tikkss deleted the add-eof branch November 22, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants