Class: EnvLint::Variable

Inherits:
Struct
  • Object
show all
Defined in:
lib/env_lint/variable.rb

Instance Attribute Summary collapse

Instance Attribute Details

#commentObject

Returns the value of attribute comment

Returns:

  • (Object)

    the current value of comment



2
3
4
# File 'lib/env_lint/variable.rb', line 2

def comment
  @comment
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/env_lint/variable.rb', line 2

def name
  @name
end

#optionalObject Also known as: optional?

Returns the value of attribute optional

Returns:

  • (Object)

    the current value of optional



2
3
4
# File 'lib/env_lint/variable.rb', line 2

def optional
  @optional
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2
3
4
# File 'lib/env_lint/variable.rb', line 2

def value
  @value
end