gluttonberg/lib/gluttonberg/templates/mixin.rb
# Extracts a different hash from the matches depending on the current 
# mode.
Extracts a different hash from the matches depending on the current
mode.
Extracts a different hash from the matches depending on the current mode .
def extract_template_details(memo, mode, match)
          if mode == :localized
            memo[match[1]] ||= {}
            memo[match[1]][match[2]] ||= []
            memo[match[1]][match[2]] << match[3]
          else
            memo[match[1]] ||= []
            memo[match[1]] << match[2]
          end
        end
def extract_template_details ( memo , mode , match ) if mode == :localized memo [ match [ 1 ] ] ||= { } memo [ match [ 1 ] ] [ match [ 2 ] ] ||= [ ] memo [ match [ 1 ] ] [ match [ 2 ] ] << match [ 3 ] else memo [ match [ 1 ] ] ||= [ ] memo [ match [ 1 ] ] << match [ 2 ] end end
Extracts a different hash from the matches depending on the current
mode.
Extracts a different hash from the matches depending on the current mode .
memo
mode
match