Class: Hash
- Inherits:
-
Object
show all
- Defined in:
- lib/rdoc-f95/ri/driver.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
414
415
416
|
# File 'lib/rdoc-f95/ri/driver.rb', line 414
def method_missing method, *args
self[method.to_s]
end
|
Instance Method Details
#merge_enums(other) ⇒ Object
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
|
# File 'lib/rdoc-f95/ri/driver.rb', line 418
def merge_enums(other)
other.each do |k,v|
if self[k] then
case v
when Array then
self[k] += v
when Hash then
self[k].merge! v
else
end
else
self[k] = v
end
end
end
|