Class: SnippetHelpers::CoffeeScriptSnippet

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



59
60
61
# File 'lib/snippet_helpers.rb', line 59

def language
  :javascript
end

#path_segmentsObject



49
50
51
52
53
54
55
56
57
# File 'lib/snippet_helpers.rb', line 49

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