lib/yard/mruby/code_objects/header_object.rb in yard-mruby-0.2.3 vs lib/yard/mruby/code_objects/header_object.rb in yard-mruby-0.3.0
- old
+ new
@@ -2,22 +2,22 @@
# A HeaderObject represents a MRuby header inside an include directory
# It groups C Functions and define macros.
class HeaderObject < YARD::CodeObjects::NamespaceObject
def functions
- children.find_all {|d| d.is_a?(FunctionObject) }
+ children.find_all {|d| d.is_a?(FunctionObject) }
end
def defines
- children.find_all {|d| d.is_a?(DefineObject) }
+ children.find_all {|d| d.is_a?(DefineObject) }
end
def typedefs
children.find_all {|d| d.is_a?(TypedefObject) }
end
def path
- self.name
+ self.name.to_s
end
def title
super.to_s
end