Class: ControllerOption

Inherits:
Object show all
Defined in:
lib/generators/brick/controllers_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, model) ⇒ ControllerOption

Returns a new instance of ControllerOption.



85
86
87
88
# File 'lib/generators/brick/controllers_generator.rb', line 85

def initialize(name, model)
  self.name = name
  self.model = model
end

Instance Attribute Details

#modelObject

Returns the value of attribute model.



83
84
85
# File 'lib/generators/brick/controllers_generator.rb', line 83

def model
  @model
end

#nameObject

Returns the value of attribute name.



83
84
85
# File 'lib/generators/brick/controllers_generator.rb', line 83

def name
  @name
end

Instance Method Details

#to_sObject



90
91
92
# File 'lib/generators/brick/controllers_generator.rb', line 90

def to_s
  name
end