Class: RemLint::Vocabulary::SysVar

Inherits:
Struct
  • Object
show all
Defined in:
lib/remlint/vocabulary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#maxObject

Returns the value of attribute max

Returns:

  • (Object)

    the current value of max



62
63
64
# File 'lib/remlint/vocabulary.rb', line 62

def max
  @max
end

#minObject

Returns the value of attribute min

Returns:

  • (Object)

    the current value of min



62
63
64
# File 'lib/remlint/vocabulary.rb', line 62

def min
  @min
end

#modifiableObject

Returns the value of attribute modifiable

Returns:

  • (Object)

    the current value of modifiable



62
63
64
# File 'lib/remlint/vocabulary.rb', line 62

def modifiable
  @modifiable
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



62
63
64
# File 'lib/remlint/vocabulary.rb', line 62

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



62
63
64
# File 'lib/remlint/vocabulary.rb', line 62

def type
  @type
end

Instance Method Details

#bounded?Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/remlint/vocabulary.rb', line 69

def bounded?
  !min.nil? && !max.nil?
end

#in_range?(value) ⇒ Boolean

Returns:

  • (Boolean)


73
74
75
# File 'lib/remlint/vocabulary.rb', line 73

def in_range?(value)
  value >= min && value <= max
end