Return-Path: X-Original-To: apmail-thrift-user-archive@www.apache.org Delivered-To: apmail-thrift-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E02DC857 for ; Sun, 10 Jun 2012 05:49:55 +0000 (UTC) Received: (qmail 73921 invoked by uid 500); 10 Jun 2012 05:49:54 -0000 Delivered-To: apmail-thrift-user-archive@thrift.apache.org Received: (qmail 73896 invoked by uid 500); 10 Jun 2012 05:49:54 -0000 Mailing-List: contact user-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@thrift.apache.org Delivered-To: mailing list user@thrift.apache.org Received: (qmail 73878 invoked by uid 99); 10 Jun 2012 05:49:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2012 05:49:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.42] (HELO mail-pz0-f42.google.com) (209.85.210.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2012 05:49:46 +0000 Received: by dalf4 with SMTP id f4so6590603dal.1 for ; Sat, 09 Jun 2012 22:49:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-type:message-id :content-transfer-encoding:x-mailer:from:subject:date:to :x-gm-message-state; bh=w5qE1V7JwGZLF9yw5zjiQTEbDtkgkor7JruGv8/waPw=; b=nRCEGOvzsXGsgnnPWQRHlZBYhmPVZGZ31nZ+Y25/id4O3cKiFPPlBSk53qtp7N4vEd /iWN+MJE3JylQIv8ppPBbHWgjUhbDy1tcWNUPgt9H55HRJiKDmesEok87RD96DHBK8xC lKUMWHZkdWLHChlCUXlML01RGdfzNbb0+ffKMHnT1ZBkOFlyBJjjDnp3d8lCSTL0LU3b hBysRoAxYx3wjp9Vy2K86fwJFdEBItJxAMg9wzD5vrscesir9ffkTQkUhd97B8r/50Pg O7rCQgTokdsbrmEFENyEqRf5rO5lrqSVA+zy1RI6FKwpqkYL7D3Jh65PqO2JSbC7YX35 b4Sg== Received: by 10.68.225.135 with SMTP id rk7mr12847678pbc.38.1339307365185; Sat, 09 Jun 2012 22:49:25 -0700 (PDT) Received: from [10.170.125.64] (mobile-166-147-082-059.mycingular.net. [166.147.82.59]) by mx.google.com with ESMTPS id jv6sm13786088pbc.40.2012.06.09.22.49.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jun 2012 22:49:21 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Message-Id: Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (9A405) From: Scott Gonyea Subject: Re: Doubt about thrift Date: Sat, 9 Jun 2012 22:49:13 -0700 To: "user@thrift.apache.org" X-Gm-Message-State: ALoCoQky1l3fHOfBTlRAwXliXe1ygo2Q8JZSeN4KeTSnpr3xzJn52sCdC9q+GeQ0zGTIE8aSeCNX X-Virus-Checked: Checked by ClamAV on apache.org Using Thrift from Ruby is rather trivial. There are several very relevant ex= amples on Google. Wear a Java hat when thinking about Thrift. On Jun 9, 2012, at 9:51 PM, Anand Hegde wrote: > If I want to convert a file into thrfit format, I will give this in my > .thrift definition file >=20 > struct my_file { >=20 > 1: string file_name > 2: string file_contents >=20 > } >=20 > After this how do I convert a file into the thrift format in ruby? >=20 > Is there a method that will do this for me?