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.



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

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.



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

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.



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

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)


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

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)


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

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.



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

def stop
  ole_connector.__close__ if runned?
end