Sha256: 9e5da67be6e5707e0f527bd0dd7b710db69c05f8a0440a5e942d450760f1eddd

Contents?: true

Size: 533 Bytes

Versions: 9

Compression:

Stored size: 533 Bytes

Contents

package wordcram.text;

import processing.core.PApplet;

public class TextFile implements TextSource {

    private final String path;

    // TODO if we move all .text.* classes into WordCram, we can kill this, and
    // use pkg-local methods for setting the parent...
    private final PApplet parent;

    public TextFile(String path, PApplet parent) {
        this.path = path;
        this.parent = parent;
    }

    @Override
    public String getText() {
        return PApplet.join(parent.loadStrings(path), ' ');
    }

}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_wordcram-2.1.1 src/wordcram/text/TextFile.java
ruby_wordcram-2.1.0 src/wordcram/text/TextFile.java
ruby_wordcram-2.0.6 src/wordcram/text/TextFile.java
ruby_wordcram-2.0.5 src/wordcram/text/TextFile.java
ruby_wordcram-2.0.4 src/wordcram/text/TextFile.java
ruby_wordcram-2.0.3 src/wordcram/text/TextFile.java
ruby_wordcram-2.0.2 src/wordcram/text/TextFile.java
ruby_wordcram-2.0.1 src/wordcram/text/TextFile.java
ruby_wordcram-2.0.0 src/wordcram/text/TextFile.java