Loading lib/jsduck/api_exporter.rb +2 −2 Original line number Diff line number Diff line Loading @@ -37,8 +37,8 @@ module JsDuck def export_members(cls, static) h = {} Class.default_members_hash.each_key do |type| h[type] = cls.find_members(:tagname => type, :static => static).map {|m| m[:name] } Class.each_member_type do |tagname| h[tagname] = cls.find_members(:tagname => tagname, :static => static).map {|m| m[:name] } end h end Loading lib/jsduck/class.rb +4 −10 Original line number Diff line number Diff line Loading @@ -230,16 +230,10 @@ module JsDuck "#{m[:meta][:static] ? 'static-' : ''}#{m[:tagname]}-#{name}" end # Returns default hash that has empty array for each member type def self.default_members_hash return { :cfg => [], :property => [], :method => [], :event => [], :css_var => [], :css_mixin => [], } # Loops through all available member types, # passing the tagname of the member to the block. def self.each_member_type(&block) [:cfg, :property, :method, :event, :css_var, :css_mixin].each(&block) end end Loading lib/jsduck/full_exporter.rb +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ module JsDuck h[:members] = {} h[:statics] = {} Class.default_members_hash.each_key do |tagname| Class.each_member_type do |tagname| h[:members][tagname] = export_members(cls, {:tagname => tagname, :static => false}) h[:statics][tagname] = export_members(cls, {:tagname => tagname, :static => true}) end Loading Loading
lib/jsduck/api_exporter.rb +2 −2 Original line number Diff line number Diff line Loading @@ -37,8 +37,8 @@ module JsDuck def export_members(cls, static) h = {} Class.default_members_hash.each_key do |type| h[type] = cls.find_members(:tagname => type, :static => static).map {|m| m[:name] } Class.each_member_type do |tagname| h[tagname] = cls.find_members(:tagname => tagname, :static => static).map {|m| m[:name] } end h end Loading
lib/jsduck/class.rb +4 −10 Original line number Diff line number Diff line Loading @@ -230,16 +230,10 @@ module JsDuck "#{m[:meta][:static] ? 'static-' : ''}#{m[:tagname]}-#{name}" end # Returns default hash that has empty array for each member type def self.default_members_hash return { :cfg => [], :property => [], :method => [], :event => [], :css_var => [], :css_mixin => [], } # Loops through all available member types, # passing the tagname of the member to the block. def self.each_member_type(&block) [:cfg, :property, :method, :event, :css_var, :css_mixin].each(&block) end end Loading
lib/jsduck/full_exporter.rb +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ module JsDuck h[:members] = {} h[:statics] = {} Class.default_members_hash.each_key do |tagname| Class.each_member_type do |tagname| h[:members][tagname] = export_members(cls, {:tagname => tagname, :static => false}) h[:statics][tagname] = export_members(cls, {:tagname => tagname, :static => true}) end Loading