Class: Randrizer::Types::Const

Inherits:
BaseType
  • Object
show all
Defined in:
lib/randrizer/types/const.rb

Overview

A constant type. Any type passed as argument will be returned as given.

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Const

Returns a new instance of Const.



9
10
11
# File 'lib/randrizer/types/const.rb', line 9

def initialize(params)
  @params = params
end

Instance Method Details

#evalObject



15
16
17
# File 'lib/randrizer/types/const.rb', line 15

def eval
  @params
end

#validate!Object



13
# File 'lib/randrizer/types/const.rb', line 13

def validate!; end