Class: Formalism::ModelForms::Conditions::Base
- Inherits:
-
Object
- Object
- Formalism::ModelForms::Conditions::Base
- Defined in:
- lib/formalism/model_forms/conditions/_base.rb
Overview
Base class for ‘:condition` form field option
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Base
constructor
A new instance of Base.
- #result ⇒ Object
Constructor Details
#initialize(name, value) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/formalism/model_forms/conditions/_base.rb', line 8 def initialize(name, value) @name = name @value = value end |
Instance Method Details
#result ⇒ Object
13 14 15 |
# File 'lib/formalism/model_forms/conditions/_base.rb', line 13 def result Sequel[@name => @value] end |