Class: Mdfiller::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mdfiller/fill.rb

Direct Known Subclasses

CsdFill, OrcAndScoFill, PdFill, PngFill, PyFill

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(f_array, soft = '', dir = '.') ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
# File 'lib/mdfiller/fill.rb', line 11

def initialize(f_array, soft='', dir='.')
  @files = f_array
  @soft = soft
  @dir = dir
end

Instance Attribute Details

#dirObject (readonly)

Returns the value of attribute dir.



9
10
11
# File 'lib/mdfiller/fill.rb', line 9

def dir
  @dir
end

#filesObject (readonly)

Returns the value of attribute files.



9
10
11
# File 'lib/mdfiller/fill.rb', line 9

def files
  @files
end

#softObject (readonly)

Returns the value of attribute soft.



9
10
11
# File 'lib/mdfiller/fill.rb', line 9

def soft
  @soft
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/mdfiller/fill.rb', line 21

def empty?
  return self.files.empty?
end

#fillObject



17
18
19
# File 'lib/mdfiller/fill.rb', line 17

def fill
  return copy_files
end