Class: Yadriggy::C::NativeMethodType
- Inherits:
-
OptionalRole
- Object
- Type
- OptionalRole
- Yadriggy::C::NativeMethodType
- Defined in:
- lib/yadriggy/c/ctypecheck.rb
Overview
Type for native methods.
Instance Attribute Summary collapse
-
#body ⇒ String
readonly
The method body.
Instance Method Summary collapse
-
#initialize(method_type, body_code) ⇒ NativeMethodType
constructor
A new instance of NativeMethodType.
Methods inherited from OptionalRole
Methods inherited from Type
#!=, #<=, #copy, #eql?, error_found!, #exact_type, #has_role?, #name, role, #supertype
Constructor Details
#initialize(method_type, body_code) ⇒ NativeMethodType
Returns a new instance of NativeMethodType.
34 35 36 37 |
# File 'lib/yadriggy/c/ctypecheck.rb', line 34 def initialize(method_type, body_code) super(method_type) @body = body_code end |
Instance Attribute Details
#body ⇒ String (readonly)
Returns the method body.
30 31 32 |
# File 'lib/yadriggy/c/ctypecheck.rb', line 30 def body @body end |