Class: IOSGen::Generator::Objc::InteractorFormatter
- Inherits:
-
Object
- Object
- IOSGen::Generator::Objc::InteractorFormatter
- Defined in:
- lib/ios_gen/generator/objc/interactor_formatter.rb
Overview
Objective-C Interactor Formatter
Instance Attribute Summary collapse
-
#actions_header ⇒ Object
readonly
Interactor Actions.
-
#actions_impl ⇒ Object
readonly
Interactor Actions.
-
#header_file_name ⇒ Object
readonly
File Names Interactors.
-
#impl_file_name ⇒ Object
readonly
File Names Interactors.
-
#interactor ⇒ Object
Property.
-
#properties_header ⇒ Object
readonly
Interactor Porperties.
-
#protocol_file_name ⇒ Object
readonly
Returns the value of attribute protocol_file_name.
-
#protocol_name ⇒ Object
readonly
Interactor Protocol.
Instance Method Summary collapse
Instance Attribute Details
#actions_header ⇒ Object (readonly)
Interactor Actions
14 15 16 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 14 def actions_header @actions_header end |
#actions_impl ⇒ Object (readonly)
Interactor Actions
14 15 16 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 14 def actions_impl @actions_impl end |
#header_file_name ⇒ Object (readonly)
File Names Interactors
7 8 9 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 7 def header_file_name @header_file_name end |
#impl_file_name ⇒ Object (readonly)
File Names Interactors
7 8 9 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 7 def impl_file_name @impl_file_name end |
#interactor ⇒ Object
Property
16 17 18 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 16 def interactor @interactor end |
#properties_header ⇒ Object (readonly)
Interactor Porperties
12 13 14 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 12 def properties_header @properties_header end |
#protocol_file_name ⇒ Object (readonly)
Returns the value of attribute protocol_file_name.
8 9 10 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 8 def protocol_file_name @protocol_file_name end |
#protocol_name ⇒ Object (readonly)
Interactor Protocol
10 11 12 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 10 def protocol_name @protocol_name end |
Instance Method Details
#generate(&block) ⇒ Object
54 55 56 57 58 |
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 54 def generate(&block) block.call(protocol_file_name, 'templates/objc/InteractorProtocol.h.erb') block.call(header_file_name, 'templates/objc/Interactor.h.erb') block.call(impl_file_name, 'templates/objc/Interactor.m.erb') end |