Module: Ronin::Model::TargetsOS::InstanceMethods

Defined in:
lib/ronin/model/targets_os.rb

Instance Method Summary collapse

Instance Method Details

#targets_os(name, version = nil) ⇒ OS

Targets a Operating System.

Examples:

t.targets_os 'FreeBSD', '7.1'
# => #<Ronin::OS @id=nil @name="FreeBSD" @version="7.1">

Since:

  • 1.0.0


104
105
106
# File 'lib/ronin/model/targets_os.rb', line 104

def targets_os(name,version=nil)
  self.os = OS.first_or_new(name: name, version: version)
end