Class: Rubydex::Keyword
- Inherits:
-
Object
- Object
- Rubydex::Keyword
- Defined in:
- lib/rubydex/keyword.rb,
ext/rubydex/graph.c
Instance Attribute Summary collapse
- #documentation ⇒ Object readonly
- #name ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(name, documentation) ⇒ Keyword
constructor
A new instance of Keyword.
Constructor Details
#initialize(name, documentation) ⇒ Keyword
Returns a new instance of Keyword.
12 13 14 15 |
# File 'lib/rubydex/keyword.rb', line 12 def initialize(name, documentation) @name = name @documentation = documentation end |
Instance Attribute Details
#documentation ⇒ Object (readonly)
9 10 11 |
# File 'lib/rubydex/keyword.rb', line 9 def documentation @documentation end |
#name ⇒ Object (readonly)
6 7 8 |
# File 'lib/rubydex/keyword.rb', line 6 def name @name end |