Class: RubyApp::Elements::Base::BaseMail
- Inherits:
-
RubyApp::Element
- Object
- RubyApp::Element
- RubyApp::Elements::Base::BaseMail
- Includes:
- Mixins::HashMixin
- Defined in:
- lib/ruby_app/elements/base/base_mail.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from RubyApp::Element
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ BaseMail
constructor
A new instance of BaseMail.
Methods included from Mixins::HashMixin
Methods inherited from RubyApp::Element
Methods included from Mixins::ConfigurationMixin
Methods included from Mixins::TranslateMixin
Methods included from Mixins::TemplateMixin
#exclude_parent_template, #exclude_parent_template?, #get_cache, #get_template, #get_templates, #template_name, #template_path
Methods included from Mixins::RenderMixin
#content_for, #render, #rendered?
Constructor Details
#initialize ⇒ BaseMail
Returns a new instance of BaseMail.
17 18 19 20 |
# File 'lib/ruby_app/elements/base/base_mail.rb', line 17 def initialize super @data = {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RubyApp::Mixins::HashMixin
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
15 16 17 |
# File 'lib/ruby_app/elements/base/base_mail.rb', line 15 def data @data end |
Instance Method Details
#[](key) ⇒ Object
22 23 24 |
# File 'lib/ruby_app/elements/base/base_mail.rb', line 22 def [](key) @data[key] end |
#[]=(key, value) ⇒ Object
26 27 28 |
# File 'lib/ruby_app/elements/base/base_mail.rb', line 26 def []=(key, value) @data[key] = value end |