Sha256: 0d34bc68674b48b9dbb89b8621d77d996f6418a1fd79d254ba1f51018074d5d9

Contents?: true

Size: 283 Bytes

Versions: 26

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

module DecoLite
  # Takes an array of symbols and creates attr_accessors.
  module FieldNamesPersistable
    def field_names
      @field_names ||= instance_variable_get(:@field_names) || []
    end

    private

    attr_writer :field_names
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
deco_lite-1.5.14 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.13 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.12 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.11 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.10 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.9 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.8 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.7 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.5 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.4 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.3 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.2 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.1 lib/deco_lite/field_names_persistable.rb
deco_lite-1.5.0 lib/deco_lite/field_names_persistable.rb
deco_lite-1.4.0 lib/deco_lite/field_names_persistable.rb
deco_lite-1.3.0 lib/deco_lite/field_names_persistable.rb
deco_lite-1.2.1 lib/deco_lite/field_names_persistable.rb
deco_lite-1.2.0 lib/deco_lite/field_names_persistable.rb
deco_lite-1.1.0 lib/deco_lite/field_names_persistable.rb
deco_lite-1.0.0 lib/deco_lite/field_names_persistable.rb