lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.0.2 vs lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.0.3
- old
+ new
@@ -9,9 +9,13 @@
def titles
all.collect{|data| data.metadata["title"]}
end
+ def slugs
+ all.collect{|data| data.metadata["slug"]}
+ end
+
def find_by_title(title)
all.find{|data| data.metadata["title"] == title}
end
def find_by_slug(slug)