Class: AutoC::UserDefinedType::PublicDeclaration
- Inherits:
-
Code
- Object
- Code
- AutoC::UserDefinedType::PublicDeclaration
show all
- Defined in:
- lib/autoc/type.rb
Instance Method Summary
collapse
Methods inherited from Code
#attach, #priority, #source_size, #write_decls, #write_defs
Constructor Details
Returns a new instance of PublicDeclaration.
140
|
# File 'lib/autoc/type.rb', line 140
def initialize(forward) @forward = forward.to_s end
|
Instance Method Details
#entities ⇒ Object
139
|
# File 'lib/autoc/type.rb', line 139
def entities; super + [Type::CommonCode] end
|
#eql?(other) ⇒ Boolean
142
|
# File 'lib/autoc/type.rb', line 142
def eql?(other) self.class == other.class && @forward == other.instance_variable_get(:@forward) end
|
#hash ⇒ Object
141
|
# File 'lib/autoc/type.rb', line 141
def hash; @forward.hash end
|
#write_intf(stream) ⇒ Object
143
144
145
146
147
|
# File 'lib/autoc/type.rb', line 143
def write_intf(stream)
stream << "\n"
stream << @forward
stream << "\n"
end
|