Class: FormFactor::Base
- Inherits:
-
Object
- Object
- FormFactor::Base
- Defined in:
- lib/form_factor/form_factor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Base
constructor
A new instance of Base.
- #javascripts ⇒ Object
- #render(*parts) ⇒ Object
- #stylesheets ⇒ Object
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
42 43 44 45 |
# File 'lib/form_factor/form_factor.rb', line 42 def initialize() @options = .clone @options[:index] = 0 end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
41 42 43 |
# File 'lib/form_factor/form_factor.rb', line 41 def @options end |
Instance Method Details
#javascripts ⇒ Object
50 51 |
# File 'lib/form_factor/form_factor.rb', line 50 def javascripts end |
#render(*parts) ⇒ Object
53 54 55 56 57 |
# File 'lib/form_factor/form_factor.rb', line 53 def render *parts result = do_render *parts @options[:index] += 1 result end |
#stylesheets ⇒ Object
47 48 |
# File 'lib/form_factor/form_factor.rb', line 47 def stylesheets end |