Class: Spinebox::Generator::View
- Inherits:
-
Object
- Object
- Spinebox::Generator::View
- Defined in:
- lib/spinebox/generator.rb
Overview
Generates a view
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#source_name ⇒ Object
readonly
Returns the value of attribute source_name.
Instance Method Summary collapse
-
#initialize(name) ⇒ View
constructor
A new instance of View.
Constructor Details
#initialize(name) ⇒ View
Returns a new instance of View.
86 87 88 89 |
# File 'lib/spinebox/generator.rb', line 86 def initialize name @name, @source_name = name.camelize, name write_source end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
81 82 83 |
# File 'lib/spinebox/generator.rb', line 81 def name @name end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
82 83 84 |
# File 'lib/spinebox/generator.rb', line 82 def source @source end |
#source_name ⇒ Object (readonly)
Returns the value of attribute source_name.
83 84 85 |
# File 'lib/spinebox/generator.rb', line 83 def source_name @source_name end |