This file contains 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 is_sub_path(head, root) | |
console = [] | |
is_sub_pathx(head,root,console) | |
end | |
def is_sub_pathx(head, root, c) | |
rslts = [] |
This file contains 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
Fetching gem metadata from https://rubygems.org/......... | |
Fetching additional metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Using activesupport-inflector (0.1.0) | |
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
/Users/joelturnbull/Developer/.rbenv/versions/2.1.0/bin/ruby extconf.rb | |
creating Makefile |
This file contains 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
source 'https://rubygems.org' | |
gem 'pry', :git => 'git@github.com:pry/pry.git' | |
gem 'pry-rescue' | |
gem 'pry-doc' | |
#gem 'pry-debugger', :git => 'git@github.com:nixme/pry-debugger.git' | |
gem 'pry-stack_explorer' | |
gem 'rspec' | |
gem 'require_all' | |
gem 'activesupport-inflector' | |
gem 'i18n' |
This file contains 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
// Creating an instance of Party | |
Party *party = [[Party alloc] init]; |
This file contains 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
// Setting Party values using accessors after initialization | |
Party *party = [[Party alloc] init]; | |
party.date = [NSDate date]; | |
party.location = @"Unicorn Office"; | |
party.attendees = @[@"Joel",@"Bill",@"Peter"]; |
This file contains 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
// Calling a customer Party initializer | |
Party *party = [[Party alloc] initWithLocation: @"Unicorn Office"]; |
This file contains 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
// The Party initializers interface | |
#import <Foundation/Foundation.h> | |
@interface Party : NSObject | |
@property (nonatomic,strong) NSDate* date; | |
@property (nonatomic,strong) NSString* location; | |
@property (nonatomic,strong) NSArray* attendees; |
This file contains 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
// Implementation of Party initializers deferring to a Designated Initializer | |
#import "Party.h" | |
@implementation Party | |
-(Party*)initWithLocation:(NSString*)location { | |
return [self initWithLocation: location date:[self defaultDate] attendees:[self defaultAttendees]]; | |
}; |
This file contains 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
When I click "Edit" |
NewerOlder