Class: ControllerOption
- Defined in:
- lib/generators/brick/controllers_generator.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, model) ⇒ ControllerOption
constructor
A new instance of ControllerOption.
- #to_s ⇒ Object
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
#model ⇒ Object
Returns the value of attribute model.
83 84 85 |
# File 'lib/generators/brick/controllers_generator.rb', line 83 def model @model end |
#name ⇒ Object
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_s ⇒ Object
90 91 92 |
# File 'lib/generators/brick/controllers_generator.rb', line 90 def to_s name end |