Class: Construction

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/construction.rb

Overview

This class describes a construction on mini map.

Instance Method Summary (collapse)

Instance Method Details

- (String) img_file

Return the image file name which is created from symbol and prefix. File extension is added on erb of views.

Returns:

  • (String)


16
17
18
# File 'app/models/construction.rb', line 16

def img_file
  return "const_" + symbol.to_s
end