Class: Referee::TableCell
- Inherits:
-
Renderable
- Object
- Renderable
- Referee::TableCell
- Defined in:
- lib/referee/renderables/tablecell.rb
Overview
Renderable implementation for UITableViewCell identifiers embedded in storyboards.
Instance Attribute Summary
Attributes inherited from Renderable
Instance Method Summary collapse
- #declaration ⇒ Object
- #implementation ⇒ Object
-
#initialize(identifier) ⇒ TableCell
constructor
A new instance of TableCell.
- #swift_implementation ⇒ Object
Methods inherited from Renderable
#bundle_accessor, #methodize_name, #simple_method_declaration, #simple_method_implementation, #simple_swift_method, #simple_swift_string_case, #swift_bundle_accessor
Constructor Details
#initialize(identifier) ⇒ TableCell
Returns a new instance of TableCell.
4 5 6 7 8 |
# File 'lib/referee/renderables/tablecell.rb', line 4 def initialize(identifier) @identifier = identifier @type = 'NSString *' @swift_type = 'String' end |
Instance Method Details
#declaration ⇒ Object
10 11 12 |
# File 'lib/referee/renderables/tablecell.rb', line 10 def declaration simple_method_declaration @identifier end |
#implementation ⇒ Object
14 15 16 |
# File 'lib/referee/renderables/tablecell.rb', line 14 def implementation simple_method_implementation @identifier, "@\"#{@identifier}\"" end |
#swift_implementation ⇒ Object
18 19 20 |
# File 'lib/referee/renderables/tablecell.rb', line 18 def swift_implementation simple_swift_string_case @identifier end |