class EmuCtl::Avd
Attributes
abi[RW]
name[RW]
skin[RW]
target[RW]
Public Class Methods
new(desc)
click to toggle source
# File lib/emu_ctl/model.rb, line 24 def initialize(desc) @lines = desc.split("\n") @name = /Name: (.+)/.match(desc)[1] @skin = /Skin: (.+)/.match(desc)[1] @target = /Target: (.+)/.match(desc)[1] @abi = /Tag\/ABI: (.+)/.match(desc)[1] end
Public Instance Methods
has_id?(id)
click to toggle source
# File lib/emu_ctl/model.rb, line 32 def has_id?(id) puts "checking me '#{@name}' for '#{id}'" @name.include?(id) end
to_s()
click to toggle source
# File lib/emu_ctl/model.rb, line 37 def to_s "#{@name}" end