lib/origen/generator/compiler.rb
# Returns the ERB buffer name for the given file, something like "@my_file_name"
Returns the ERB buffer name for the given file, something like "@my_file_name"
Returns the ERB buffer name for the given file something like " @my_file_name "
def buffer_name_for(file)
        expected_filename = file.basename.to_s.chomp('.erb')
        expected_filename.gsub!('-', '_') if expected_filename.match(/-/)
        expected_filename.gsub!('.', '_') if expected_filename.match(/./)
        @current_buffer = '@_' + expected_filename
      end
def buffer_name_for ( file ) expected_filename = file . basename . to_s . chomp ( '.erb' ) expected_filename . gsub! ( '-' , '_' ) if expected_filename . match ( / - / ) expected_filename . gsub! ( '.' , '_' ) if expected_filename . match ( / . / ) @current_buffer = '@_' + expected_filename end
Returns the ERB buffer name for the given file, something like "@my_file_name"
Returns the ERB buffer name for the given file something like " @my_file_name "
file
<not_specific>