Sha256: 292c232d2ede4549737f2ed618550930d0cf48c74d875fab910328eacb0012d1

Contents?: true

Size: 577 Bytes

Versions: 59

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/entry_keys'

module Avm
  module Instances
    class Base
      module EntryKeys
        # @return [Enumerable<String>]
        def entry_keys
          ::Avm::Instances::EntryKeys.all
        end

        ::Avm::Instances::EntryKeys.all.each do |key|
          method_name = key.to_s.variableize
          define_method method_name do
            read_entry(key)
          end

          define_method "#{method_name}_optional" do
            read_entry_optional(key)
          end
        end
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
avm-0.94.0 lib/avm/instances/base/entry_keys.rb
eac_tools-0.94.0 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.93.0 lib/avm/instances/base/entry_keys.rb
eac_tools-0.92.0 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.92.0 lib/avm/instances/base/entry_keys.rb
eac_tools-0.91.0 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.90.1 lib/avm/instances/base/entry_keys.rb
eac_tools-0.87.1 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.90.0 lib/avm/instances/base/entry_keys.rb
eac_tools-0.87.0 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.89.0 lib/avm/instances/base/entry_keys.rb
eac_tools-0.86.12 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.88.0 lib/avm/instances/base/entry_keys.rb
eac_tools-0.86.11 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.87.0 lib/avm/instances/base/entry_keys.rb
eac_tools-0.86.8 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.86.2 lib/avm/instances/base/entry_keys.rb
eac_tools-0.86.7 sub/avm/lib/avm/instances/base/entry_keys.rb
avm-0.86.1 lib/avm/instances/base/entry_keys.rb
eac_tools-0.86.5 sub/avm/lib/avm/instances/base/entry_keys.rb