Class: Custodian::Samplers::Sampler
- Inherits:
-
Object
- Object
- Custodian::Samplers::Sampler
- Includes:
- Utilities
- Defined in:
- lib/custodian/samplers/sampler.rb
Overview
Base class for samplers.
Class Method Summary collapse
-
.compatible? ⇒ Boolean
Determine whether the sampler is compatible with this system.
-
.describe(description) ⇒ Object
Describe the sampler.
-
.description ⇒ Object
Returns the sampler’s description.
-
.sample ⇒ Object
Make a sample from this sampler.
Methods included from Utilities
directory_exists?, file_exists?, program_exists?
Class Method Details
.compatible? ⇒ Boolean
Determine whether the sampler is compatible with this system.
Returns true if it is compatible, or false if it isn’t.
39 40 41 |
# File 'lib/custodian/samplers/sampler.rb', line 39 def compatible? true end |
.describe(description) ⇒ Object
Describe the sampler.
description - A String describing the sampler.
Returns nothing.
15 16 17 |
# File 'lib/custodian/samplers/sampler.rb', line 15 def describe(description) @description = description end |
.description ⇒ Object
Returns the sampler’s description.
20 21 22 |
# File 'lib/custodian/samplers/sampler.rb', line 20 def description @description end |
.sample ⇒ Object
32 33 34 |
# File 'lib/custodian/samplers/sampler.rb', line 32 def sample nil end |