Class: Struct::Field

Inherits:
Struct show all
Defined in:
lib/degu/renum/enumerated_value.rb

Overview

This class encapsulates an enum field (аctually a method with arity == 0).

Direct Known Subclasses

Degu::Renum::EnumeratedValue::Field

Instance Attribute Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



56
57
58
# File 'lib/degu/renum/enumerated_value.rb', line 56

def block
  @block
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



56
57
58
# File 'lib/degu/renum/enumerated_value.rb', line 56

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



56
57
58
# File 'lib/degu/renum/enumerated_value.rb', line 56

def options
  @options
end