class SnipmateToYas::Snipmate::Collection
A list of snipmate snippets, generally contained in a file
Attributes
mode[R]
Public Class Methods
new(mode, snippets = [])
click to toggle source
# File lib/snipmate_to_yas/snipmate/collection.rb, line 9 def initialize(mode, snippets = []) @mode = mode @snippets = snippets end
Public Instance Methods
each(&block)
click to toggle source
# File lib/snipmate_to_yas/snipmate/collection.rb, line 14 def each(&block) @snippets.each(&block) end
last()
click to toggle source
# File lib/snipmate_to_yas/snipmate/collection.rb, line 18 def last @snippets.last end