module YARD::Templates::Helpers::FilterHelper
Helpers
for various object types
Public Instance Methods
Source
# File lib/yard/templates/helpers/filter_helper.rb, line 17 def is_class?(object) object.is_a?(CodeObjects::ClassObject) end
@return [Boolean] whether an object is a class
Source
# File lib/yard/templates/helpers/filter_helper.rb, line 7 def is_method?(object) object.type == :method end
@return [Boolean] whether an object is a method
Source
# File lib/yard/templates/helpers/filter_helper.rb, line 22 def is_module?(object) object.is_a?(CodeObjects::ModuleObject) end
@return [Boolean] whether an object is a module
Source
# File lib/yard/templates/helpers/filter_helper.rb, line 12 def is_namespace?(object) object.is_a?(CodeObjects::NamespaceObject) end
@return [Boolean] whether an object is a namespace