Class: Procedo::Procedure::Reading

Inherits:
Setter show all
Defined in:
lib/procedo/procedure/reading.rb

Overview

An Attribute defines an information to complete

Instance Attribute Summary

Attributes inherited from Setter

#computations

Attributes inherited from Field

#name, #parameter

Instance Method Summary collapse

Methods inherited from Setter

#accessible?, #add_computation, #depend_on?, #hidden?

Methods inherited from Field

code_trees, count_variables, dependent_parameters, detect, detect_environment_variable, detect_parameter, each, parse!

Constructor Details

#initialize(parameter, name, options = {}) ⇒ Reading


5
6
7
8
9
10
# File 'lib/procedo/procedure/reading.rb', line 5

def initialize(parameter, name, options = {})
  super(parameter, name, options)
  unless Nomen::Indicator.find(@name)
    raise "Unknown reading type for #{procedure_name}/#{parameter_name}: " + @name.inspect
  end
end