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.



48
49
50
# File 'lib/ass_ole.rb', line 48

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.



72
73
74
# File 'lib/ass_ole.rb', line 72

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.



67
68
69
70
# File 'lib/ass_ole.rb', line 67

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)


63
64
65
# File 'lib/ass_ole.rb', line 63

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)


59
60
61
# File 'lib/ass_ole.rb', line 59

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.



55
56
57
# File 'lib/ass_ole.rb', line 55

def stop
  ole_connector.__close__ if runned?
end