class IRails::Display::Renderer

Attributes

match[R]
mime[R]
priority[R]
render[R]

Public Class Methods

new(match, mime, render, priority) click to toggle source
# File lib/irails/display.rb, line 92
def initialize(match, mime, render, priority)
  @match, @mime, @render, @priority = match, mime, render, priority
end

Public Instance Methods

match?(obj) click to toggle source
# File lib/irails/display.rb, line 96
def match?(obj)
  @match.call(obj)
end