class Grizzled::FileUtil::FakeURI
Internal fake URI
Attributes
path[RW]
Public Class Methods
new(path)
click to toggle source
# File lib/grizzled/fileutil/includer.rb, line 85 def initialize(path) @fake_methods = [:scheme, :userinfo, :host, :port, :registry, :opaque, :query, :fragment] @path = path end
Public Instance Methods
method_missing(meth, *args, &block)
click to toggle source
# File lib/grizzled/fileutil/includer.rb, line 91 def method_missing(meth, *args, &block) if @fake_methods.include? meth nil else raise NoMethodError.new("Undefined method: #{meth.to_s}") end end