Skip to content

Commit

Permalink
readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Oct 24, 2009
1 parent 3918a30 commit c55e9c6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
@@ -1,21 +1,23 @@
BERT
====

BERT is a BERT (Binary ERlang Term) serialization library for Ruby. It can
A BERT (Binary ERlang Term) serialization library for Ruby. It can
encode Ruby objects into BERT format and decode BERT binaries into Ruby
objects.

See the BERT specification at [bert-rpc.org](http://bert-rpc.org).

Instances of the following Ruby classes will be automatically converted to the proper simple BERT type:
Instances of the following Ruby classes will be automatically converted to the
proper simple BERT type:

* Fixnum
* Float
* Symbol
* Array
* String

Instances of the following Ruby classes will be automatically converted to the proper complex BERT type:
Instances of the following Ruby classes will be automatically converted to the
proper complex BERT type:

* NilClass
* TrueClass
Expand All @@ -24,10 +26,11 @@ Instances of the following Ruby classes will be automatically converted to the p
* Time
* Regexp

To designate tuples, simply prefix an Array literal with a `t` or use the BERT::Tuple class:
To designate tuples, simply prefix an Array literal with a `t` or use the
BERT::Tuple class:

t[:foo, [1, 2, 3]]
BERT::Tuple.new([:foo, [1, 2, 3]])
BERT::Tuple[:foo, [1, 2, 3]]

Both of these will be converted to (in Erlang syntax):

Expand Down

0 comments on commit c55e9c6

Please sign in to comment.