Class: ActiveYaml::Base

Inherits:
ActiveFile::Base show all
Defined in:
lib/active_yaml/base.rb

Instance Attribute Summary

Attributes inherited from ActiveHash::Base

#attributes

Class Method Summary collapse

Methods inherited from ActiveFile::Base

all, data=, full_path, reload, set_filename, set_root_path, should_reload?

Methods inherited from ActiveHash::Base

all, auto_assign_fields, configuration_for_custom_finder, count, data=, define_custom_find_all_method, define_custom_find_method, define_getter_method, define_interrogator_method, #eql?, field, fields, find, find_by_id, #hash, #id, #initialize, method_missing, #new_record?, #readonly?, respond_to?, #to_param

Constructor Details

This class inherits a constructor from ActiveHash::Base

Class Method Details

.extensionObject



9
10
11
# File 'lib/active_yaml/base.rb', line 9

def extension
  "yml"
end

.load_fileObject



5
6
7
# File 'lib/active_yaml/base.rb', line 5

def load_file
  YAML.load_file(full_path)
end