Class: Category

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

Instance Method Summary collapse

Instance Method Details

#formatted_labelObject



12
13
14
# File 'app/models/category.rb', line 12

def formatted_label
  syntax_label || label
end

#general_codeObject



7
8
9
# File 'app/models/category.rb', line 7

def general_code
  informational? ? '' : (variable.general_column_width.nil? ? code : code[0, variable.general_column_width])
end