Skip to content

Instantly share code, notes, and snippets.

@aarongough
Created July 13, 2010 22:25
Show Gist options
  • Save aarongough/474654 to your computer and use it in GitHub Desktop.
Save aarongough/474654 to your computer and use it in GitHub Desktop.
def emit(token_name, data, target_array, ts, te)
target_array << {:name => token_name.to_sym, :value => data[ts...te].pack("c*") }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment