Class: Nugrant::Vagrant::Config::User

Inherits:
Vagrant::Config::Base
  • Object
show all
Defined in:
lib/nugrant/vagrant/config/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUser

Returns a new instance of User.



9
10
11
# File 'lib/nugrant/vagrant/config/user.rb', line 9

def initialize()
  @parameters = Nugrant::Parameters.new()
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



17
18
19
# File 'lib/nugrant/vagrant/config/user.rb', line 17

def method_missing(method, *args, &block)
  return @parameters.method_missing(method, *args, &block)
end

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



7
8
9
# File 'lib/nugrant/vagrant/config/user.rb', line 7

def parameters
  @parameters
end

Instance Method Details

#[](param_name) ⇒ Object



13
14
15
# File 'lib/nugrant/vagrant/config/user.rb', line 13

def [](param_name)
  return @parameters[param_name]
end

#defaults(parameters) ⇒ Object



21
22
23
# File 'lib/nugrant/vagrant/config/user.rb', line 21

def defaults(parameters)
  @parameters.defaults(parameters)
end

#defaults=(parameters) ⇒ Object



25
26
27
# File 'lib/nugrant/vagrant/config/user.rb', line 25

def defaults=(parameters)
  @parameters.defaults=(parameters)
end