Class: Liquid::SnippetDrop
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Drop
Instance Method Summary collapse
-
#initialize(body, name, filename) ⇒ SnippetDrop
constructor
A new instance of SnippetDrop.
- #to_partial ⇒ Object
- #to_s ⇒ Object
Methods inherited from Drop
#inspect, invokable?, invokable_methods, #invoke_drop, #key?, #liquid_method_missing, #to_liquid
Constructor Details
#initialize(body, name, filename) ⇒ SnippetDrop
Returns a new instance of SnippetDrop.
7 8 9 10 11 12 |
# File 'lib/liquid/snippet_drop.rb', line 7 def initialize(body, name, filename) super() @body = body @name = name @filename = filename end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/liquid/snippet_drop.rb', line 5 def body @body end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
5 6 7 |
# File 'lib/liquid/snippet_drop.rb', line 5 def filename @filename end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/liquid/snippet_drop.rb', line 5 def name @name end |
Instance Method Details
#to_partial ⇒ Object
14 15 16 |
# File 'lib/liquid/snippet_drop.rb', line 14 def to_partial @body end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/liquid/snippet_drop.rb', line 18 def to_s 'SnippetDrop' end |