class EasyEntityFormatter

Public Class Methods

new(view_context) click to toggle source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 3
def initialize(view_context)
  @view_context = view_context
end

Public Instance Methods

ending_buttons?() click to toggle source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 23
def ending_buttons?
  false
end
format_column(column, entity) click to toggle source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 15
def format_column(column, entity)
  format_object column.value_object(entity)
end
format_object(value) click to toggle source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 19
def format_object(value)
  view.format_object(value)
end
l(*args) click to toggle source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 11
def l(*args)
  view.l(*args)
end
view() click to toggle source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 7
def view
  @view_context
end