Class: IOSGen::Generator::Objc::ActionFormatter
- Inherits:
-
Object
- Object
- IOSGen::Generator::Objc::ActionFormatter
- Defined in:
- lib/ios_gen/generator/objc/action_formatter.rb
Overview
Objective-C Action Formatter
Instance Method Summary collapse
Instance Method Details
#generate_implementation(action) ⇒ Object
14 15 16 17 18 |
# File 'lib/ios_gen/generator/objc/action_formatter.rb', line 14 def generate_implementation(action) result = "- (#{action.return_type})" result += parse_action_arguments(action) + "\n{\n}" result end |
#generate_interface(action) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ios_gen/generator/objc/action_formatter.rb', line 6 def generate_interface(action) result = '' result += "// #{action.description}\n" unless action.description.nil? result += "- (#{action.return_type})" result += parse_action_arguments(action) + ';' result end |