Class: Machinery::ManagedFilesDatabase::ChangedFile
- Defined in:
- lib/managed_files_database.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Object
Instance Method Summary collapse
- #config_file? ⇒ Boolean
-
#initialize(type, attrs) ⇒ ChangedFile
constructor
A new instance of ChangedFile.
Methods inherited from Object
#==, #[], #[]=, #as_json, #compare_with, convert_element, convert_raw_hash, #empty?, from_json, has_property, #hash, #initialize_copy, #method_missing, #respond_to?, #set_attributes
Constructor Details
#initialize(type, attrs) ⇒ ChangedFile
Returns a new instance of ChangedFile.
22 23 24 25 |
# File 'lib/managed_files_database.rb', line 22 def initialize(type, attrs) super(attrs) @type = type end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Machinery::Object
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/managed_files_database.rb', line 20 def type @type end |
Instance Method Details
#config_file? ⇒ Boolean
27 28 29 |
# File 'lib/managed_files_database.rb', line 27 def config_file? @type == "c" end |