summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.5.2/lib/rouge/demos/objective_c
blob: c0856262c167c116d86e08e152e50a432c71eaa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@interface Person : NSObject {
  @public
  NSString *name;
  @private
  int age;
}

@property(copy) NSString *name;
@property(readonly) int age;

-(id)initWithAge:(int)age;
@end

NSArray *arrayLiteral = @[@"abc", @1];
NSDictionary *dictLiteral = @{
  @"hello": @"world",
  @"goodbye": @"cruel world"
};