Class RadicalGroup
In: app/models/radical_group.rb
Parent: Object

Methods

Constants

RADICAL_GROUPS = Hash.new

Public Class methods

[Source]

    # File app/models/radical_group.rb, line 4
 4:   def self.get_radical_groups
 5:     if RADICAL_GROUPS.empty?
 6:       for radical in CharacterRadical.find_distinct
 7:         stroke_count = radical.stroke_count
 8:         unless RADICAL_GROUPS[stroke_count]
 9:           RADICAL_GROUPS[stroke_count] = Array.new
10:         end
11:         RADICAL_GROUPS[stroke_count] << radical
12:       end
13:     end
14:     
15:     return RADICAL_GROUPS
16:   end

[Validate]