class Avo::ViewInquirer

def ==(other)

To avoid breaking changes we allow the comparison with symbols
def ==(other)
  if other.is_a? Symbol
    to_sym == other
  else
    super(other)
  end
end

def display?

def display?
  @display
end

def form?

def form?
  @form
end

def in?(another_object)

def in?(another_object)
  super(another_object.map(&:to_s))
end

def initialize(view)

def initialize(view)
  super(view.to_s)
  @display = in? DISPLAY_VIEWS
  @form = in? FORM_VIEWS
end