Module: Tap::Support::TDoc::ClassModuleAccess

Included in:
RDoc::ClassModule
Defined in:
lib/tap/support/tdoc.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#configurationsObject



228
229
230
231
232
# File 'lib/tap/support/tdoc.rb', line 228

def configurations
  @attributes.select do |attribute|
    attribute.kind_of?(TDoc::ConfigAttr)
  end
end

#find_class_or_module_named(name) ⇒ Object



219
220
221
222
223
224
225
226
# File 'lib/tap/support/tdoc.rb', line 219

def find_class_or_module_named(name)
  return self if full_name == name
  (@classes.values + @modules.values).each do |c| 
    res = c.find_class_or_module_named(name)
    return res if res
  end
  nil
end

#find_configuration_named(name) ⇒ Object



234
235
236
237
238
239
240
# File 'lib/tap/support/tdoc.rb', line 234

def find_configuration_named(name)
  @attributes.each do |attribute|
    next unless attribute.kind_of?(TDoc::ConfigAttr)
    return attribute if attribute.name == name
  end
  nil
end