Module: Dagger::Wrapper::ClassMethods

Defined in:
lib/dagger/wrapper.rb

Instance Method Summary collapse

Instance Method Details

#base_options(opts = nil) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/dagger/wrapper.rb', line 20

def base_options(opts = nil)
  if opts # set
    @base_options = opts
  else
    @base_options or raise "base_url unset!" # get
  end
end

#base_url(str = nil) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/dagger/wrapper.rb', line 12

def base_url(str = nil)
  if str # set
    @base_url = str
  else
    @base_url or raise "base_url unset!" # get
  end
end