class Slideshow::HeadersDrop
Public Class Methods
new( headers )
click to toggle source
# File lib/slideshow/drops.rb, line 7 def initialize( headers ) @headers = headers end
Public Instance Methods
liquid_method_missing( method )
click to toggle source
# File lib/slideshow/drops.rb, line 11 def liquid_method_missing( method ) ## note: was before_method before 4+ in liquid (that is, only works in liquid 4+) ## note: assume returned value is always a string or nil (if key not found) puts " call HeadersDrop#before_method >#{method}< : #{method.class}" value = @headers[ method ] value end