Class: Hotdog::Commands::Search::GlobExpressionNode

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



1114
1115
1116
1117
1118
1119
1120
1121
# File 'lib/hotdog/commands/search.rb', line 1114

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