Module: Prawnto::ActionControllerMixin::ClassMethods
- Defined in:
- lib/prawnto/action_controller_mixin.rb
Class Method Summary collapse
Instance Method Summary collapse
- #prawn_options ⇒ Object
- #prawn_options=(options) ⇒ Object
- #prawnto(options) ⇒ Object
- #prawnto_options ⇒ Object
- #prawnto_options=(options) ⇒ Object
Class Method Details
.extended(cls) ⇒ Object
13 14 15 16 |
# File 'lib/prawnto/action_controller_mixin.rb', line 13 def self.extended(cls) cls.send(:class_attribute, :prawn_options) cls.send(:class_attribute, :prawnto_options) end |
Instance Method Details
#prawn_options ⇒ Object
22 23 24 |
# File 'lib/prawnto/action_controller_mixin.rb', line 22 def read_inheritable_attribute(:prawn_options) end |
#prawn_options=(options) ⇒ Object
18 19 20 |
# File 'lib/prawnto/action_controller_mixin.rb', line 18 def () write_inheritable_hash(:prawn_options, ) end |
#prawnto(options) ⇒ Object
35 36 37 38 39 |
# File 'lib/prawnto/action_controller_mixin.rb', line 35 def prawnto() , = self. = self. = end |
#prawnto_options ⇒ Object
30 31 32 |
# File 'lib/prawnto/action_controller_mixin.rb', line 30 def read_inheritable_attribute(:prawnto_options) end |
#prawnto_options=(options) ⇒ Object
26 27 28 |
# File 'lib/prawnto/action_controller_mixin.rb', line 26 def () write_inheritable_hash(:prawnto_options, ) end |