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
lib LibStrToken | |
fun strtok( input : UInt8*, delim : UInt8*) : UInt8* | |
end | |
module Test | |
class Run | |
def string_token(str, del) | |
io = IO::Memory.new(str.size) | |
io << str | |
split_tok = [] of String |
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
require "json" | |
class Base | |
def create_json | |
io = IO::Memory.new | |
b = JSON::Builder.new(io) | |
b.start_document | |
b.start_object | |
self.to_json(b) | |
b.end_object |
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
require "http" | |
module Thing | |
class MyClass < IO | |
def seek(offset) | |
ret = nil | |
ret + 1 | |
end | |
def rewind |