Class: IOSGen::Generator::Objc::InteractorFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/ios_gen/generator/objc/interactor_formatter.rb

Overview

Objective-C Interactor Formatter

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actions_headerObject (readonly)

Interactor Actions



14
15
16
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 14

def actions_header
  @actions_header
end

#actions_implObject (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_nameObject (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_nameObject (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

#interactorObject

Property



16
17
18
# File 'lib/ios_gen/generator/objc/interactor_formatter.rb', line 16

def interactor
  @interactor
end

#properties_headerObject (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_nameObject (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_nameObject (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