Class: Mdfiller::Base
- Inherits:
-
Object
- Object
- Mdfiller::Base
- Defined in:
- lib/mdfiller/fill.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#soft ⇒ Object
readonly
Returns the value of attribute soft.
Instance Method Summary collapse
- #empty? ⇒ Boolean
- #fill ⇒ Object
-
#initialize(f_array, soft = '', dir = '.') ⇒ Base
constructor
A new instance of Base.
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
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
9 10 11 |
# File 'lib/mdfiller/fill.rb', line 9 def dir @dir end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
9 10 11 |
# File 'lib/mdfiller/fill.rb', line 9 def files @files end |
#soft ⇒ Object (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
21 22 23 |
# File 'lib/mdfiller/fill.rb', line 21 def empty? return self.files.empty? end |
#fill ⇒ Object
17 18 19 |
# File 'lib/mdfiller/fill.rb', line 17 def fill return copy_files end |