Sha256: 6b3ad65f1877ce8d4dc930cb0ceae9c00a7b0de6d8c351815d928185efa8475f

Contents?: true

Size: 496 Bytes

Versions: 13

Compression:

Stored size: 496 Bytes

Contents

class TestParameters
  include Parameters

  parameter :var, :description => 'Test parameter'

  parameter :var_with_default,
            :default => 'thing',
            :description => 'This parameter has a default value'

  parameter :var_without_default,
            :description => 'This parameter does not have a default value'

  parameter :var_with_lambda,
            :default => lambda { rand },
            :description => 'This parameter uses a lambda instead of a default value'
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
parameters-0.4.4 spec/classes/test_parameters.rb
parameters-0.4.3 spec/classes/test_parameters.rb
parameters-0.4.2 spec/classes/test_parameters.rb
parameters-0.4.0 spec/classes/test_parameters.rb
parameters-0.3.1 spec/classes/test_parameters.rb
parameters-0.3.0 spec/classes/test_parameters.rb
parameters-0.2.3 spec/classes/test_parameters.rb
parameters-0.2.2 spec/classes/test_parameters.rb
parameters-0.2.1 spec/classes/test_parameters.rb
parameters-0.2.0 spec/classes/test_parameters.rb
parameters-0.1.9 spec/classes/test_parameters.rb
parameters-0.1.8 spec/classes/test_parameters.rb
parameters-0.1.7 spec/classes/test_parameters.rb