Class: Hotdog::Expression::RegexpExpressionNode

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

Instance Attribute Summary

Attributes inherited from TagExpressionNode

#separator, #tag_name, #tag_value

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, #reload, #separator?, #tag_name?, #tag_value?, #to_glob

Methods inherited from ExpressionNode

#evaluate, #optimize

Constructor Details

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

Instance Method Details

#dump(options = {}) ⇒ Object



988
989
990
991
992
993
994
995
# File 'lib/hotdog/expression/semantics.rb', line 988

def dump(options={})
  data = {}
  data[:tag_name_regexp] = tag_name.to_s if tag_name
  data[:separator] = separator.to_s if separator
  data[:tag_value_regexp] = tag_value.to_s if tag_value
  data[:fallback] = @fallback.dump(options) if @fallback
  data
end