Module: Leafy::Mixin::DataAccessor::ClassMethods
- Defined in:
- lib/leafy/mixin/data_accessor.rb
Instance Method Summary collapse
- #leafy_data_attribute ⇒ Object
- #leafy_data_attribute=(value) ⇒ Object
- #leafy_data_getter ⇒ Object
- #leafy_data_setter ⇒ Object
Instance Method Details
#leafy_data_attribute ⇒ Object
10 11 12 |
# File 'lib/leafy/mixin/data_accessor.rb', line 10 def leafy_data_attribute @leafy_data_attribute ||= :leafy_data end |
#leafy_data_attribute=(value) ⇒ Object
6 7 8 |
# File 'lib/leafy/mixin/data_accessor.rb', line 6 def leafy_data_attribute=(value) @leafy_data_attribute = value end |
#leafy_data_getter ⇒ Object
14 |
# File 'lib/leafy/mixin/data_accessor.rb', line 14 def leafy_data_getter; leafy_data_attribute; end |
#leafy_data_setter ⇒ Object
16 |
# File 'lib/leafy/mixin/data_accessor.rb', line 16 def leafy_data_setter; "#{leafy_data_attribute}="; end |