Class: Configru::Option

Inherits:
Struct
  • Object
show all
Includes:
OptionMethods
Defined in:
lib/configru/option.rb

Direct Known Subclasses

OptionArray

Instance Attribute Summary collapse

Method Summary

Methods included from OptionMethods

#transform, #type?, #valid?

Instance Attribute Details

#defaultObject

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



22
23
24
# File 'lib/configru/option.rb', line 22

def default
  @default
end

#transformationObject

Returns the value of attribute transformation

Returns:

  • (Object)

    the current value of transformation



22
23
24
# File 'lib/configru/option.rb', line 22

def transformation
  @transformation
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



22
23
24
# File 'lib/configru/option.rb', line 22

def type
  @type
end

#validationObject

Returns the value of attribute validation

Returns:

  • (Object)

    the current value of validation



22
23
24
# File 'lib/configru/option.rb', line 22

def validation
  @validation
end