class IOSGen::Generator::Objc::InteractorFormatter
Objective-C Interactor Formatter
Attributes
actions_header[R]
Interactor Actions
actions_impl[R]
Interactor Actions
header_file_name[R]
File Names Interactors
impl_file_name[R]
File Names Interactors
interactor[RW]
Property
properties_header[R]
Interactor Porperties
protocol_file_name[R]
protocol_name[R]
Interactor Protocol
Public Instance Methods
generate(&block)
click to toggle source
# 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
Private Instance Methods
loop_actions()
click to toggle source
# File lib/ios_gen/generator/objc/interactor_formatter.rb, line 62 def loop_actions actions = '' action_formatter = ActionFormatter.new @interactor.actions.each do |action| actions += "#{yield(action_formatter, action)}\n" end actions.chop end