class Middleman::Extension

def expose_to_application(*symbols)

Returns:
  • (void) -

Parameters:
  • symbols (Array, Hash) -- An optional list of symbols representing instance methods to exposed.

Other tags:
    Example: with Array: -
    Example: with Hash: -
def expose_to_application(*symbols)
  self.exposed_to_application ||= {}
  if symbols.first && symbols.first.is_a?(Hash)
    self.exposed_to_application.merge!(symbols.first)
  elsif symbols.is_a? Array
    symbols.each do |sym|
      self.exposed_to_application[sym] = sym
    end
  end
end