Class: Rmsgen::FsPolnoteGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/rmsgen/fs_polnote_group.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir = nil) ⇒ FsPolnoteGroup

Returns a new instance of FsPolnoteGroup.


3
4
5
6
7
# File 'lib/rmsgen/fs_polnote_group.rb', line 3

def initialize(dir=nil)
  splat_dir = "#{dir}/*"
  @raw_notes = Dir[splat_dir].map { |f| File.read(f) }
  @notes = @raw_notes.map { |note| Rmsgen::Polnote.new(note) }
end

Instance Method Details

#allObject


8
9
10
# File 'lib/rmsgen/fs_polnote_group.rb', line 8

def all
  @notes
end