Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Last active Dec 16, 2015
Embed
What would you like to do?
" autload/test.vim
function! test#initialize()
ruby << EOF
EOF
endfunction
" autoload/test/initialize.vim
function! test#initialize#expect_error()
call test#initialize()
ruby << EOF
require 'net/http'
#=> 標準モジュールはOK
require 'rspec'
#=> 標準モジュールじゃなければなんでも。
EOF
endfunction
" :call test#initialize#expect_error()
@alpaca-tc

This comment has been minimized.

Copy link
Owner Author

@alpaca-tc alpaca-tc commented Apr 24, 2013

function! test#initialize#expect_error()でも
まだruby空間を一度も開いてない状態なら読み込める。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment