Method: HyperRouter::ClassMethods#history

Defined in:
lib/hyper-router/class_methods.rb

#history(*args) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/hyper-router/class_methods.rb', line 5

def history(*args)
  if args.count > 0
    @__history_type = args.first
  elsif @__history_type
    @__history ||= send(:"#{@__history_type}_history")
  end
end