This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)drawFromPosition:(CGPoint)location view:(UIView *)view size:(CGFloat)size { | |
UIImage *cardImage = [UIImage imageNamed:[NSString stringWithFormat:@"%@%@.png", [[self.suit substringToIndex:1] lowercaseString], [[self.rank substringToIndex:1] lowercaseString]]]; | |
UIImageView *cardImageView = [[UIImageView alloc] initWithFrame:CGRectMake(location.x, location.y, cardImage.size.width*size, cardImage.size.height*size)]; | |
[cardImageView setImage:cardImage]; | |
[view addSubview:cardImageView]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def assert_equal(a, b) | |
puts "#{a}.should == #{b}" | |
end | |
def assert_not_nil(a) | |
puts "#{a}.should_not == nil" | |
end | |
def assert_raise(*all_args) | |
puts "Cannot convert assert_raise" |
NewerOlder