Class: Cri::ParamDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/cri/param_definition.rb

Overview

The definition of a parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, transform:) ⇒ ParamDefinition

Returns a new instance of ParamDefinition.



9
10
11
12
# File 'lib/cri/param_definition.rb', line 9

def initialize(name:, transform:)
  @name = name
  @transform = transform
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/cri/param_definition.rb', line 6

def name
  @name
end

#transformObject (readonly)

Returns the value of attribute transform.



7
8
9
# File 'lib/cri/param_definition.rb', line 7

def transform
  @transform
end