Class: Hotdog::Expression::RegexpExpressionNode

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



1060
1061
1062
1063
1064
1065
1066
1067
# File 'lib/hotdog/expression/semantics.rb', line 1060

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