Method: DNS::ResourceRecord#initialize
- Defined in:
- lib/faildns/resourcerecord.rb
#initialize(what = {}) ⇒ ResourceRecord
Returns a new instance of ResourceRecord.
108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/faildns/resourcerecord.rb', line 108 def initialize (what={}) if !what.is_a? Hash raise ArgumentError.new('You have to pass a Hash.') end @data = what if block_given? yield self end end |