Sha256: b9fd9ed2c34dbd687148ac34063eff09503bac0e9e9e4f5e8dc740850649fd41

Contents?: true

Size: 332 Bytes

Versions: 41

Compression:

Stored size: 332 Bytes

Contents

module ActiveYaml

  class Base < ActiveFile::Base
    class << self
      def load_file
        if (data = raw_data).is_a?(Array)
          data
        else
          data.values
        end
      end

      def raw_data
        YAML.load_file(full_path)
      end

      def extension
        "yml"
      end

    end
  end

end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
active_hash-1.2.3 lib/active_yaml/base.rb
active_hash-1.2.2 lib/active_yaml/base.rb
active_hash-1.2.1 lib/active_yaml/base.rb
active_hash-1.2.0 lib/active_yaml/base.rb
active_hash-1.0.2 lib/active_yaml/base.rb
active_hash-1.0.1 lib/active_yaml/base.rb
active_hash-1.0.0 lib/active_yaml/base.rb
active_hash-0.10.0 lib/active_yaml/base.rb
active_hash-0.9.14 lib/active_yaml/base.rb
active_hash-0.9.13 lib/active_yaml/base.rb
active_hash-0.9.12 lib/active_yaml/base.rb
active_hash-0.9.11 lib/active_yaml/base.rb
active_hash-0.9.10 lib/active_yaml/base.rb
active_hash-0.9.9 lib/active_yaml/base.rb
active_hash-0.9.8 lib/active_yaml/base.rb
active_hash-0.9.7 lib/active_yaml/base.rb
active_hash-0.9.6 lib/active_yaml/base.rb
active_hash-0.9.5 lib/active_yaml/base.rb
active_hash-0.9.4 lib/active_yaml/base.rb
active_hash-0.9.3 lib/active_yaml/base.rb