Method: Metior::Report::View#render

Defined in:
lib/metior/report/view.rb

#render(*args) ⇒ Object

This checks if all required VCS features of this view are available for this report's repository

Parameters:

  • args (Object, ...)

    The arguments expected by Mustache#render

See Also:



81
82
83
84
# File 'lib/metior/report/view.rb', line 81

def render(*args)
  features = self.class.send :class_variable_get, :@@required_features
  super if features.all? { |feature| repository.supports? feature }
end