Class: NavigationLight::ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- NavigationLight::ApplicationRecord
- Defined in:
- app/models/navigation_light/application_record.rb
Direct Known Subclasses
Label, MiddleLabel, Time, Uuid
Instance Method Summary collapse
Instance Method Details
#ejection(type: 'back_result') ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/models/navigation_light/application_record.rb', line 5 def ejection(type: 'back_result') case type when 'back_result', 'normal' # send(type.to_sym, yield) send(type.to_sym) do yield end else raise '参数(type), 赋值异常' end end |