Class: Scribo::IncludeDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
app/drops/scribo/include_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ IncludeDrop

Returns a new instance of IncludeDrop.



5
6
7
# File 'app/drops/scribo/include_drop.rb', line 5

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#liquid_method_missing(method) ⇒ Object



9
10
11
# File 'app/drops/scribo/include_drop.rb', line 9

def liquid_method_missing(method)
  @attributes[method.to_s]
end