Skip to content

Instantly share code, notes, and snippets.

@ikesyo
Created July 30, 2012 07:39
Show Gist options
  • Select an option

  • Save ikesyo/3205528 to your computer and use it in GitHub Desktop.

Select an option

Save ikesyo/3205528 to your computer and use it in GitHub Desktop.
DescriptionBuilder.podspec
Pod::Spec.new do |s|
s.name = 'DescriptionBuilder'
s.version = '0.1'
s.platform = :ios
s.summary = 'DescriptionBuilder is helper class to make easier implementing NSObject description method.
Or dump all instance variables of any object. '
s.homepage = 'https://github.com/kishikawakatsumi/DescriptionBuilder'
s.author = { 'KISHIKAWA Katsumi' => 'kishikawakatsumi@gmail.com' }
s.source = { :git => 'https://github.com/kishikawakatsumi/DescriptionBuilder.git', :branch => 'master' }
s.description = '* Usage
- (NSString *)description {
return [DescriptionBuilder reflectDescription:self];
}
Or,
- (NSString *)description {
return [DescriptionBuilder reflectDescription:self style:DescriptionStyleMultiLine];
}
Output:
<Settings: 0xd188b0; version = 100; autoLock = NO; twentyFourHourTime = YES; alarmSound = "digital-alarm"; alarmVolume = 1.000000>'
s.requires_arc = false
s.source_files = 'Classes/DescriptionBuilder.{h,m}'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment