Module: AssOle::Runtimes::ModuleMethods Private

Defined in:
lib/ass_ole.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ole_connectorObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



50
51
52
# File 'lib/ass_ole.rb', line 50

def ole_connector
  @ole_connector
end

Instance Method Details

#extended(obj) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



74
75
76
# File 'lib/ass_ole.rb', line 74

def extended(obj)
  ole_runtime_set obj
end

#included(obj) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



69
70
71
72
# File 'lib/ass_ole.rb', line 69

def included(obj)
  ole_runtime_set obj
  obj.send(:extend, RuntimeDispatcher)
end

#initialized?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


65
66
67
# File 'lib/ass_ole.rb', line 65

def initialized?
  !ole_connector.nil?
end

#runned?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


61
62
63
# File 'lib/ass_ole.rb', line 61

def runned?
  initialized? && ole_connector.__opened__?
end

#stopObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



57
58
59
# File 'lib/ass_ole.rb', line 57

def stop
  ole_connector.__close__ if runned?
end