class SwiftGenerator::SwiftMethod
Public Class Methods
new(swift_element, name, argStr, returns, override: false, comment: nil)
click to toggle source
Calls superclass method
SwiftGenerator::SwiftMethodBase::new
# File lib/swift_generator/code_generation/swift_class_generation.rb, line 1418 def initialize (swift_element, name, argStr, returns, override: false, comment: nil) super(swift_element, name, argStr, returns, override:override, comment:comment) swift_element.methods << self end
Public Instance Methods
func_fragment()
click to toggle source
# File lib/swift_generator/code_generation/swift_class_generation.rb, line 1423 def func_fragment() return 'func' if func_qualifiers.nil? return [*func_qualifiers].join( ' ' ) + ' func' end