Class: Snmp2mkr::ConfigTypes::RawString
- Defined in:
- lib/snmp2mkr/config_types/raw_string.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#bind_context, #children, #collect_children, #evaluate, #initialize, #inspect
Constructor Details
This class inherits a constructor from Snmp2mkr::ConfigTypes::Base
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
11 12 13 |
# File 'lib/snmp2mkr/config_types/raw_string.rb', line 11 def value @value end |
Instance Method Details
#setup(str) ⇒ Object
6 7 8 9 |
# File 'lib/snmp2mkr/config_types/raw_string.rb', line 6 def setup(str) raise TypeError, "#{self.class} must be given a String" unless str.kind_of?(String) @value = str end |