Class: SnippetHelpers::JavaScriptSnippet

Inherits:
Snippet
  • Object
show all
Defined in:
lib/snippet_helpers.rb

Instance Method Summary collapse

Methods inherited from Snippet

#initialize, #path

Constructor Details

This class inherits a constructor from SnippetHelpers::Snippet

Instance Method Details

#languageObject



43
44
45
# File 'lib/snippet_helpers.rb', line 43

def language
  :javascript
end

#path_segmentsObject



39
40
41
# File 'lib/snippet_helpers.rb', line 39

def path_segments
  [SOURCE_DIR, 'javascripts', 'breezeblocks', "#{name.underscore}.js"]
end