Skip to content
Permalink
Browse files

Fixed #583 -- Added Symbol#empty?

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 10, 2013
1 parent 68a1590 commit 422e17d0e6967b84a002d929bf62d3af8390ae91
Showing with 4 additions and 2 deletions.
  1. +0 −2 spec/tags/core/symbol/empty_tags.txt
  2. +4 −0 topaz/objects/symbolobject.py

This file was deleted.

@@ -43,6 +43,10 @@ def method_inspect(self, space):
def method_size(self, space):
return space.newint(len(self.symbol))

@classdef.method("empty?")
def method_emptyp(self, space):
return space.newbool(not self.symbol)

@classdef.method("<=>")
def method_comparator(self, space, w_other):
if not space.is_kind_of(w_other, space.w_symbol):

0 comments on commit 422e17d

Please sign in to comment.