This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thinkminimo.step | |
class StepExample extends Step { | |
get("/") { "Hello World!" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Used for IO objects that need to report the current offset at each operation that changes the said offset | |
# (useful for building progress bars that report on a file read operation) | |
class ProgressiveIO < DelegateClass(IO) | |
# Should contain a block that accepts the current offset in bytes and the total size | |
attr_accessor :progress_block | |
# Get or set the total size of the contained IO. If the passed IO is a File object | |
# the size will be preset automatically | |
attr_accessor :total_size |
NewerOlder