예제 #1
0
        private RubyView GetView(string virtualPath, RubyView masterView)
        {
            if (String.IsNullOrEmpty(virtualPath))
                return null;

            return new RubyView(_rubyEngine, GetContents(virtualPath), masterView);
        }
예제 #2
0
        private RubyView GetView(string virtualPath, RubyView masterView)
        {
            if (String.IsNullOrEmpty(virtualPath))
            {
                return(null);
            }

            return(new RubyView(_rubyEngine, GetContents(virtualPath), masterView));
        }
예제 #3
0
 public RubyView(IRubyEngine rubyEngine, string viewContents, RubyView master)
 {
     _rubyEngine = rubyEngine;
     _master     = master;
     _contents   = viewContents;
 }
예제 #4
0
 public RubyView(IRubyEngine rubyEngine, string viewContents, RubyView master)
 {
     _rubyEngine = rubyEngine;
     _master = master;
     _contents = viewContents;
 }