Class: Rubydex::Keyword

Inherits:
Object
  • Object
show all
Defined in:
lib/rubydex/keyword.rb,
ext/rubydex/graph.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, documentation) ⇒ Keyword

: (String name, String documentation) -> void



12
13
14
15
# File 'lib/rubydex/keyword.rb', line 12

def initialize(name, documentation)
  @name = name
  @documentation = documentation
end

Instance Attribute Details

#documentationObject (readonly)

: String



9
10
11
# File 'lib/rubydex/keyword.rb', line 9

def documentation
  @documentation
end

#nameObject (readonly)

: String



6
7
8
# File 'lib/rubydex/keyword.rb', line 6

def name
  @name
end