Loading lib/jsduck/class.rb +0 −9 Original line number Diff line number Diff line Loading @@ -99,15 +99,6 @@ module JsDuck end end # Returns copy of @doc hash def to_hash @doc.clone end def to_json(*a) to_hash.to_json(*a) end # Returns true when this class inherits from the specified class. # Also returns true when the class itself is the one we are asking about. def inherits_from?(class_name) Loading lib/jsduck/full_exporter.rb +4 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,10 @@ module JsDuck # Returns all data in Class object as hash. def export(cls) h = cls.to_hash # Make copy of the internal data structure of a class # so our modifications on it will be safe. h = cls.internal_doc.clone h[:members] = {} h[:statics] = {} Class.default_members_hash.each_key do |tagname| Loading Loading
lib/jsduck/class.rb +0 −9 Original line number Diff line number Diff line Loading @@ -99,15 +99,6 @@ module JsDuck end end # Returns copy of @doc hash def to_hash @doc.clone end def to_json(*a) to_hash.to_json(*a) end # Returns true when this class inherits from the specified class. # Also returns true when the class itself is the one we are asking about. def inherits_from?(class_name) Loading
lib/jsduck/full_exporter.rb +4 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,10 @@ module JsDuck # Returns all data in Class object as hash. def export(cls) h = cls.to_hash # Make copy of the internal data structure of a class # so our modifications on it will be safe. h = cls.internal_doc.clone h[:members] = {} h[:statics] = {} Class.default_members_hash.each_key do |tagname| Loading