Class: Randrizer::Types::Const
- 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
- #eval ⇒ Object
-
#initialize(params) ⇒ Const
constructor
A new instance of Const.
- #validate! ⇒ Object
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
#eval ⇒ Object
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 |