Class: RemLint::Vocabulary::SysVar
- Inherits:
-
Struct
- Object
- Struct
- RemLint::Vocabulary::SysVar
- Defined in:
- lib/remlint/vocabulary.rb
Instance Attribute Summary collapse
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#modifiable ⇒ Object
Returns the value of attribute modifiable.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#max ⇒ Object
Returns the value of attribute max
62 63 64 |
# File 'lib/remlint/vocabulary.rb', line 62 def max @max end |
#min ⇒ Object
Returns the value of attribute min
62 63 64 |
# File 'lib/remlint/vocabulary.rb', line 62 def min @min end |
#modifiable ⇒ Object
Returns the value of attribute modifiable
62 63 64 |
# File 'lib/remlint/vocabulary.rb', line 62 def modifiable @modifiable end |
#name ⇒ Object
Returns the value of attribute name
62 63 64 |
# File 'lib/remlint/vocabulary.rb', line 62 def name @name end |
#type ⇒ Object
Returns the value of attribute type
62 63 64 |
# File 'lib/remlint/vocabulary.rb', line 62 def type @type end |
Instance Method Details
#bounded? ⇒ Boolean
69 70 71 |
# File 'lib/remlint/vocabulary.rb', line 69 def bounded? !min.nil? && !max.nil? end |
#in_range?(value) ⇒ Boolean
73 74 75 |
# File 'lib/remlint/vocabulary.rb', line 73 def in_range?(value) value >= min && value <= max end |