Class: Fried::Test::Options
- Inherits:
-
Object
- Object
- Fried::Test::Options
- Defined in:
- lib/fried/test/options.rb
Constant Summary collapse
- Default =
new.freeze
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
7 8 9 |
# File 'lib/fried/test/options.rb', line 7 def file @file end |
Class Method Details
.build(file: nil) ⇒ Object
9 10 11 12 13 |
# File 'lib/fried/test/options.rb', line 9 def self.build(file: nil) new.tap do |instance| instance.file = file end end |
Instance Method Details
#single_file? ⇒ Boolean
15 16 17 |
# File 'lib/fried/test/options.rb', line 15 def single_file? !file.nil? end |