Sha256: aab07af332ad00ff017c75aeb1d48a60bf51294f21ad104edc31273aef0168f3

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 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

3 entries across 3 versions & 1 rubygems

Version Path
parameters-0.1.5 spec/helpers/test_parameters.rb
parameters-0.1.6 spec/classes/test_parameters.rb
parameters-0.1.4 spec/helpers/test_parameters.rb