Class: Hotdog::Expression::GlobExpressionNode

Inherits:
TagExpressionNode show all
Defined in:
lib/hotdog/expression/semantics.rb

Instance Attribute Summary

Attributes inherited from TagExpressionNode

#separator, #tagname, #tagvalue

Instance Method Summary collapse

Methods inherited from TagExpressionNode

#==, #condition, #condition_tables, #condition_values, #evaluate, #initialize, #maybe_fallback, #maybe_glob, #maybe_query, #maybe_query_without_condition, #optimize, #separator?, #tagname?, #tagvalue?, #to_glob

Methods inherited from ExpressionNode

#==, #compact, #evaluate, #optimize

Constructor Details

This class inherits a constructor from Hotdog::Expression::TagExpressionNode

Instance Method Details

#dump(options = {}) ⇒ Object



909
910
911
912
913
914
915
916
# File 'lib/hotdog/expression/semantics.rb', line 909

def dump(options={})
  data = {}
  data[:tagname_glob] = tagname.to_s if tagname
  data[:separator] = separator.to_s if separator
  data[:tagvalue_glob] = tagvalue.to_s if tagvalue
  data[:fallback] = @options[:fallback].dump(options) if @options[:fallback]
  data
end