Module: Musa::Datasets::E

Includes:
Dataset
Included in:
Abs, Delta
Defined in:
lib/musa-dsl/datasets/e.rb

Constant Summary collapse

NaturalKeys =
[].freeze

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

TODO implement valid? in all ‘subclasses’. This implies recollecting from other places where validations are done and refactoring TODO should valid? and validate! be on Dataset instead of E? P dataset inherits from Dataset but probably it could be validated

Returns:

  • (Boolean)


12
13
14
# File 'lib/musa-dsl/datasets/e.rb', line 12

def valid?
  true
end

#validate!Object

Raises:

  • (RuntimeError)


16
17
18
# File 'lib/musa-dsl/datasets/e.rb', line 16

def validate!
  raise RuntimeError, "Invalid dataset #{self}" unless valid?
end