class Dustcart::Resource::Input::FileBase
base class for file system input
Attributes
from[R]
Public Class Methods
new(to_dir, from, &block)
click to toggle source
Calls superclass method
Dustcart::Resource::Input::Base::new
# File lib/dustcart/input/file_base.rb, line 8 def initialize(to_dir, from, &block) super(to_dir, &block) @from = from end
Public Instance Methods
precheck()
click to toggle source
Calls superclass method
Dustcart::Resource::Input::Base#precheck
# File lib/dustcart/input/file_base.rb, line 13 def precheck super raise <<-EOS.unindent unless Object::File.exists?(from) target(#{from}) does not exists EOS end