Class: Kuromd::BaseFile
- Inherits:
-
Object
- Object
- Kuromd::BaseFile
- Defined in:
- lib/kuromd/basefile.rb
Overview
Super class for all files
Direct Known Subclasses
Instance Attribute Summary collapse
-
#note_type ⇒ Object
Returns the value of attribute note_type.
Class Method Summary collapse
-
.assign_file_objs(params = {}) ⇒ Object
Only one type at the moment, comfortable with hard coding.
-
.cleanup_types ⇒ Object
Only one type at the moment, comfortable with hard coding.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ BaseFile
constructor
A new instance of BaseFile.
- #process ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(params = {}) ⇒ BaseFile
Returns a new instance of BaseFile.
8 |
# File 'lib/kuromd/basefile.rb', line 8 def initialize(params = {}); end |
Instance Attribute Details
#note_type ⇒ Object
Returns the value of attribute note_type.
6 7 8 |
# File 'lib/kuromd/basefile.rb', line 6 def note_type @note_type end |
Class Method Details
.assign_file_objs(params = {}) ⇒ Object
Only one type at the moment, comfortable with hard coding
14 15 16 17 18 |
# File 'lib/kuromd/basefile.rb', line 14 def self.assign_file_objs(params = {}) autoload_files objs = [] objs.push(Kuromd::Journal::File.new(params)) end |
.cleanup_types ⇒ Object
Only one type at the moment, comfortable with hard coding
21 22 23 24 25 |
# File 'lib/kuromd/basefile.rb', line 21 def self.cleanup_types note_type = [] note_type.push('Journal file') note_type end |
Instance Method Details
#process ⇒ Object
11 |
# File 'lib/kuromd/basefile.rb', line 11 def process; end |
#valid? ⇒ Boolean
10 |
# File 'lib/kuromd/basefile.rb', line 10 def valid?; end |