class Aio::Parse::NoDeviceState

Public Instance Methods

get_device(opts={}) click to toggle source
# File lib/aio/core/parse/parser_machine/no_device_state.rb, line 4
def get_device(opts={})
        # 首先判断是否已经存在,但是这是初始状态,所以一定没有
        self.device_manager.add_device(opts)

        @machine.to_has_device_state
end