Class: Swiftfake::SwiftFunction
- Inherits:
-
Object
- Object
- Swiftfake::SwiftFunction
- Defined in:
- lib/swiftfake/swift_function.rb
Defined Under Namespace
Classes: Argument
Instance Attribute Summary collapse
-
#access ⇒ Object
readonly
Returns the value of attribute access.
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#return_value ⇒ Object
readonly
Returns the value of attribute return_value.
Instance Method Summary collapse
-
#initialize(full_name:, name:, access:, arguments:, return_value:) ⇒ SwiftFunction
constructor
A new instance of SwiftFunction.
Constructor Details
#initialize(full_name:, name:, access:, arguments:, return_value:) ⇒ SwiftFunction
Returns a new instance of SwiftFunction.
7 8 9 10 11 12 13 |
# File 'lib/swiftfake/swift_function.rb', line 7 def initialize(full_name:, name:, access:, arguments:, return_value:) @full_name = full_name @name = name @access = access @arguments = arguments @return_value = return_value end |
Instance Attribute Details
#access ⇒ Object (readonly)
Returns the value of attribute access.
5 6 7 |
# File 'lib/swiftfake/swift_function.rb', line 5 def access @access end |
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/swiftfake/swift_function.rb', line 5 def arguments @arguments end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
5 6 7 |
# File 'lib/swiftfake/swift_function.rb', line 5 def full_name @full_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/swiftfake/swift_function.rb', line 5 def name @name end |
#return_value ⇒ Object (readonly)
Returns the value of attribute return_value.
5 6 7 |
# File 'lib/swiftfake/swift_function.rb', line 5 def return_value @return_value end |