Class: Generators::Base
- Inherits:
-
Object
- Object
- Generators::Base
- Defined in:
- lib/toschas/filterable/generators/base.rb
Instance Attribute Summary collapse
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(model, filters, options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(model, filters, options) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 |
# File 'lib/toschas/filterable/generators/base.rb', line 5 def initialize(model, filters, ) @model = model @filters = filters @options = end |
Instance Attribute Details
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
3 4 5 |
# File 'lib/toschas/filterable/generators/base.rb', line 3 def filters @filters end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
3 4 5 |
# File 'lib/toschas/filterable/generators/base.rb', line 3 def model @model end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/toschas/filterable/generators/base.rb', line 3 def @options end |
Instance Method Details
#generate ⇒ Object
11 12 |
# File 'lib/toschas/filterable/generators/base.rb', line 11 def generate end |