Class: Kuromd::BaseFile

Inherits:
Object
  • Object
show all
Defined in:
lib/kuromd/basefile.rb

Overview

Super class for all files

Direct Known Subclasses

Journal::File

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_typeObject

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_typesObject

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

#processObject



11
# File 'lib/kuromd/basefile.rb', line 11

def process; end

#valid?Boolean

Returns:

  • (Boolean)


10
# File 'lib/kuromd/basefile.rb', line 10

def valid?; end