module ActsAsTemplate
Constants
- AUTHORS
- DESCRIPTION
- HOMEPAGE
- LICENSE
- NAME
- REPO
- SUMMARY
- VERSION
Public Instance Methods
acts_as_template(options = {})
click to toggle source
# File lib/acts_as_template.rb, line 16 def acts_as_template(options = {}) cattr_accessor :foo_bar_field, default: options.fetch(:foo_bar_field, '') end
set_foo_bar_field(string)
click to toggle source
# File lib/acts_as_template.rb, line 10 def set_foo_bar_field(string) write_attribute(self.class.foo_bar_field, string) end