mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
22 lines
285 B
Ruby
22 lines
285 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Liquid
|
|
class SnippetDrop < Drop
|
|
attr_reader :body, :name
|
|
|
|
def initialize(body, name)
|
|
super()
|
|
@body = body
|
|
@name = name
|
|
end
|
|
|
|
def to_partial
|
|
@body
|
|
end
|
|
|
|
def to_s
|
|
'SnippetDrop'
|
|
end
|
|
end
|
|
end
|