Module: Spotify::Mock
- Included in:
- Spotify
- Defined in:
- lib/mockspotify.rb,
lib/mockspotify/version.rb
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
-
.path ⇒ String
Path to the libmockspotify C extension binary.
Instance Method Summary collapse
-
#attach_function ⇒ Object
Overriden to not throw an error on missing functions.
-
#ffi_lib ⇒ Object
Overridden to always ffi_lib the mock path.
Class Method Details
.path ⇒ String
Returns path to the libmockspotify C extension binary.
8 9 10 |
# File 'lib/mockspotify.rb', line 8 def self.path File.('../../ext/libmockspotify.', __FILE__) << Config::MAKEFILE_CONFIG['DLEXT'] end |
Instance Method Details
#attach_function ⇒ Object
Overriden to not throw an error on missing functions.
18 19 20 21 22 |
# File 'lib/mockspotify.rb', line 18 def attach_function(*) super rescue FFI::NotFoundError => e warn "#{e.}" if $VERBOSE end |