Class: Hotdog::Commands::Search::RegexpExpressionNode

Inherits:
TagExpressionNode show all
Defined in:
lib/hotdog/commands/search.rb

Instance Attribute Summary

Attributes inherited from TagExpressionNode

#attribute, #identifier, #separator

Instance Method Summary collapse

Methods inherited from TagExpressionNode

#==, #attribute?, #condition, #condition_tables, #condition_values, #evaluate, #identifier?, #initialize, #maybe_fallback, #maybe_glob, #maybe_query, #maybe_query_without_condition, #optimize, #reload, #separator?, #to_glob

Methods inherited from ExpressionNode

#evaluate, #intermediates, #leafs, #optimize

Constructor Details

This class inherits a constructor from Hotdog::Commands::Search::TagExpressionNode

Instance Method Details

#dump(options = {}) ⇒ Object



1233
1234
1235
1236
1237
1238
1239
1240
# File 'lib/hotdog/commands/search.rb', line 1233

def dump(options={})
  data = {}
  data[:identifier_regexp] = identifier.to_s if identifier
  data[:separator] = separator.to_s if separator
  data[:attribute_regexp] = attribute.to_s if attribute
  data[:fallback] = @fallback.dump(options) if @fallback
  data
end