class IOSGen::Generator::Objc::XctestcaseFormatter
Objetive-C XCTestCase Formatter
Attributes
actions_impl[R]
class_test_name[R]
file_name[R]
name[R]
object[RW]
Public Instance Methods
generate(&block)
click to toggle source
# File lib/ios_gen/generator/objc/xctestcase_formatter.rb, line 28 def generate(&block) block.call(file_name, 'templates/objc/XCTestCase.m.erb') end
Private Instance Methods
loop_actions()
click to toggle source
# File lib/ios_gen/generator/objc/xctestcase_formatter.rb, line 34 def loop_actions actions = '' action_formatter = ActionFormatter.new @object.actions.each do |action| actions += "#{yield(action_formatter, action)}\n" end actions.chop end