Module: Leafy::Mixin::DataAccessor::ClassMethods

Defined in:
lib/leafy/mixin/data_accessor.rb

Instance Method Summary collapse

Instance Method Details

#leafy_data_attributeObject



12
13
14
# File 'lib/leafy/mixin/data_accessor.rb', line 12

def leafy_data_attribute
  @leafy_data_attribute ||= :leafy_data
end

#leafy_data_attribute=(value) ⇒ Object



8
9
10
# File 'lib/leafy/mixin/data_accessor.rb', line 8

def leafy_data_attribute=(value)
  @leafy_data_attribute = value
end

#leafy_data_getterObject



16
# File 'lib/leafy/mixin/data_accessor.rb', line 16

def leafy_data_getter; leafy_data_attribute; end

#leafy_data_setterObject



18
# File 'lib/leafy/mixin/data_accessor.rb', line 18

def leafy_data_setter; "#{leafy_data_attribute}="; end