class SiSU_Filename_Lang::FilenameLanguageCodeInsert

Public Class Methods

new(opt,lng=nil) click to toggle source
# File lib/sisu/se_file_op.rb, line 2794
def initialize(opt,lng=nil)
  @opt=opt
  @lng=lng ||=opt.lng
end

Public Instance Methods

language_code_insert() click to toggle source
# File lib/sisu/se_file_op.rb, line 2798
def language_code_insert
  if @opt.dir_structure_by ==:language \
  or ((@opt.dir_structure_by ==:filetype \
  || @opt.dir_structure_by ==:filename) \
  and (@opt.lingual ==:mono \
  && @lng == @opt.act[:default_language][:code]))
    ''
  elsif (@opt.dir_structure_by ==:filetype \
  || @opt.dir_structure_by ==:filename) \
  and not @opt.lingual ==:mono
    '.' + @lng
  else
    '.' + @lng
  end
end