Class: RDocF95::RI::Description

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc-f95/ri/descriptions.rb

Direct Known Subclasses

MethodDescription, ModuleDescription

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



60
61
62
# File 'lib/rdoc-f95/ri/descriptions.rb', line 60

def comment
  @comment
end

#full_nameObject

Returns the value of attribute full_name.



59
60
61
# File 'lib/rdoc-f95/ri/descriptions.rb', line 59

def full_name
  @full_name
end

#nameObject

Returns the value of attribute name.



58
59
60
# File 'lib/rdoc-f95/ri/descriptions.rb', line 58

def name
  @name
end

Class Method Details

.deserialize(from) ⇒ Object



66
67
68
# File 'lib/rdoc-f95/ri/descriptions.rb', line 66

def self.deserialize(from)
  YAML.load(from)
end

Instance Method Details

#<=>(other) ⇒ Object



70
71
72
# File 'lib/rdoc-f95/ri/descriptions.rb', line 70

def <=>(other)
  @name <=> other.name
end

#serializeObject



62
63
64
# File 'lib/rdoc-f95/ri/descriptions.rb', line 62

def serialize
  self.to_yaml
end