Class: SnippetHelpers::Snippet

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Snippet

Returns a new instance of Snippet.



5
6
7
# File 'lib/snippet_helpers.rb', line 5

def initialize(name)
  @name = name
end

Instance Method Details

#pathObject



9
10
11
# File 'lib/snippet_helpers.rb', line 9

def path
  File.join(*path_segments)
end