When Brian Mooney’s students struggled in March to digest the literary themes and dense language in Toni Morrison’s novel “The Bluest Eye,” Mr. Mooney sought inspiration from an unorthodox teacher of his own: the two-time Grammy winner and world-famous rapper Kendrick Lamar.

Mr. Mooney, who teaches freshman English at High Tech High School in North Bergen, N.J., played Mr. Lamar’s album (edited, of course) “To Pimp a Butterfly” to draw correlations to Ms. Morrison’s novel.

Using a literary lens called “hip-hop ed” that he learned during his graduate courses at Teachers College at Columbia University, Mr. Mooney asked his students to reflect on the dichotomy of black culture in America — the celebration of itself and its struggle with historic oppression. His students’ sudden understanding shined through essays, colorful canvases and performance art.

Mr. Mooney, 29, blogged about his curriculum and shared his students’ work online. The blog racked up over 10,000 Facebook shares, and hardly a month passed before Mr. Lamar discovered it.