Skip to content

Instantly share code, notes, and snippets.

@soh335
Created February 22, 2010 02:26
Show Gist options
  • Save soh335/310714 to your computer and use it in GitHub Desktop.
Save soh335/310714 to your computer and use it in GitHub Desktop.
function! s:model()
if exists('s:model')
return s:model
endif
let s:model = {}
function! s:model.name() dict
return 'hoge'
endfunction
function! s:model.extension() dict
return '.php'
endfunction
return s:model
endfuction
function! s:view()
if exists('s:view')
return s:view
endif
let s:view = {}
function! s:view.name() dict
return 'fuga'
endfunction
function! s:view.extension() dict
return '.class.php'
endfunction
return s:view
endfuction
# s:model().name()
# s:view().name()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment