Class: Bullshit::Case::CaseExtension::Autocorrelation
- Inherits:
-
Object
- Object
- Bullshit::Case::CaseExtension::Autocorrelation
- Extended by:
- DSLKit::Constant, DSLKit::DSLAccessor
- Includes:
- Bullshit::CommonConstants
- Defined in:
- lib/bullshit.rb
Instance Method Summary collapse
-
#initialize(enable = nil, &block) ⇒ Autocorrelation
constructor
A new instance of Autocorrelation.
Constructor Details
#initialize(enable = nil, &block) ⇒ Autocorrelation
Returns a new instance of Autocorrelation.
639 640 641 642 643 644 645 646 647 |
# File 'lib/bullshit.rb', line 639 def initialize(enable = nil, &block) if block enable.nil? or raise ArgumentError, "block form doesn't take an argument" instance_eval(&block) enabled true else enabled enable.nil? ? false : enable end end |