Module: Eson::Search::Filter::ClassMethods

Defined in:
lib/eson/search/filter.rb

Instance Method Summary collapse

Instance Method Details

#short_name(name) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/eson/search/filter.rb', line 5

def short_name(name)
  name = name.to_sym
  define_method :name do
    name
  end
  Filters.register name, self
  
  super if defined? super
end