Sha256: 9f5059e45b6514fbd8ef0776e57dad284339f67fa273c694b50ddc65ef7a2281
Contents?: true
Size: 322 Bytes
Versions: 5
Compression:
Stored size: 322 Bytes
Contents
# echo.fy # Outputs contents of files if: (ARGV[1]) then: |filename| { try { File open: filename modes: ['read] with: |f| { until: { f eof? } do: { f readln println } } } catch IOError => e { "[ERROR] " ++ (e message) println } } else: { "Usage: fancy echo.fy [filename]" println }
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.8.0 | examples/echo.fy |
fancy-0.7.0 | examples/echo.fy |
fancy-0.6.0 | examples/echo.fy |
fancy-0.5.0 | examples/echo.fy |
fancy-0.4.0 | examples/echo.fy |