Class: Egor::EnvironmentFeature

Inherits:
Struct
  • Object
show all
Defined in:
lib/egor/environment_feature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#constrainedObject

Returns the value of attribute constrained

Returns:

  • (Object)

    the current value of constrained



2
3
4
# File 'lib/egor/environment_feature.rb', line 2

def constrained
  @constrained
end

#labelsObject

Returns the value of attribute labels

Returns:

  • (Object)

    the current value of labels



2
3
4
# File 'lib/egor/environment_feature.rb', line 2

def labels
  @labels
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/egor/environment_feature.rb', line 2

def name
  @name
end

#silentObject

Returns the value of attribute silent

Returns:

  • (Object)

    the current value of silent



2
3
4
# File 'lib/egor/environment_feature.rb', line 2

def silent
  @silent
end

#symbolsObject

Returns the value of attribute symbols

Returns:

  • (Object)

    the current value of symbols



2
3
4
# File 'lib/egor/environment_feature.rb', line 2

def symbols
  @symbols
end

Instance Method Details

#constrained?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/egor/environment_feature.rb', line 8

def constrained?
  constrained == "T"
end

#silent?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/egor/environment_feature.rb', line 12

def silent?
  silent == "T"
end

#to_sObject



4
5
6
# File 'lib/egor/environment_feature.rb', line 4

def to_s
  [name, symbols.join, labels.join, constrained, silent].join(";")
end