Class: Snmp2mkr::ConfigTypes::RawString

Inherits:
Base
  • Object
show all
Defined in:
lib/snmp2mkr/config_types/raw_string.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#binded_context

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

#valueObject (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

Raises:

  • (TypeError)


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