Class: Docks::Languages::ERB

Inherits:
Base
  • Object
show all
Includes:
Common::Markup
Defined in:
lib/docks/languages/erb_language.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#load_stub, #parser, symbol_sources

Class Method Details

.extensionsObject



12
# File 'lib/docks/languages/erb_language.rb', line 12

def self.extensions; %w(erb) end

.typeObject



11
# File 'lib/docks/languages/erb_language.rb', line 11

def self.type; Docks::Types::Languages::MARKUP end

Instance Method Details

#helper_markup_for(helper_name, arguments) ⇒ Object



14
15
16
# File 'lib/docks/languages/erb_language.rb', line 14

def helper_markup_for(helper_name, arguments)
  functionize_helper(helper_name, arguments, start_with: "<%= ", end_with: " %>")
end

#rendererObject



18
# File 'lib/docks/languages/erb_language.rb', line 18

def renderer; Docks::Renderers::ERB.new end