Sha256: 7d76e81479b4838948f471abfe9ea4e6c8872ddac5b25f2b840c738006708e47
Contents?: true
Size: 398 Bytes
Versions: 3
Compression:
Stored size: 398 Bytes
Contents
# *stdout* refers to STDOUT File open: "/tmp/foo.txt" modes: ['write] with: |f| { let: '*stdout* be: f in: { # *stdout* refers to f # "foo" will be written to /tmp/foo.txt # and not STDOUT "foo" println } } File open: "/tmp/foo.txt" modes: ['read] with: |f| { let: '*stdin* be: f in: { *stdin* readln println # => prints "foo" to *stdout* } } # *stdout* refers to STDOUT
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.7.0 | examples/dynamic_output.fy |
fancy-0.6.0 | examples/dynamic_output.fy |
fancy-0.5.0 | examples/dynamic_output.fy |