private Method

Base.compiled_method_name_file_path_segment(file_name)

There's no documentation for this item.

Source Code

# File action_view/base.rb, line 584
def compiled_method_name_file_path_segment(file_name)
  if file_name
    s = File.expand_path(file_name)
    s.sub!(/^#{Regexp.escape(File.expand_path(RAILS_ROOT))}/, '') if defined?(RAILS_ROOT)
    s.gsub!(/([^a-zA-Z0-9_])/) { $1.ord }
    s
  else
    (@@inline_template_count += 1).to_s
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.