Skip to content

Commit

Permalink
direct access to mii
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Jun 16, 2009
1 parent dbab21c commit 87f2c80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubytorrent.rb
Expand Up @@ -11,6 +11,8 @@
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License (in the file COPYING) for more details.

$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rubytorrent/util'
require 'rubytorrent/bencoding'
require 'rubytorrent/metainfo'
Expand Down
4 changes: 4 additions & 0 deletions lib/rubytorrent/metainfo.rb
Expand Up @@ -163,6 +163,10 @@ def check
end
end

def mii
@s
end

def self.from_bstream(bs)
dict = nil
bs.each do |e|
Expand Down

0 comments on commit 87f2c80

Please sign in to comment.