Class: Rock::DesignerPluginData
- Inherits:
-
Object
- Object
- Rock::DesignerPluginData
- Defined in:
- lib/rock/widget_generator.rb
Overview
Template data Contains relevant information the widget and designer plugin to be generated.
Instance Attribute Summary collapse
-
#icon_path ⇒ Object
readonly
Returns the value of attribute icon_path.
-
#plugin_klassname ⇒ Object
readonly
Returns the value of attribute plugin_klassname.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#test_binary_name ⇒ Object
readonly
Returns the value of attribute test_binary_name.
-
#whats_this ⇒ Object
readonly
Returns the value of attribute whats_this.
-
#widget_klassname ⇒ Object
readonly
Returns the value of attribute widget_klassname.
Instance Method Summary collapse
-
#get_binding ⇒ Object
Support templating.
-
#initialize(project_name, widget_klassname, icon_path, whats_this) ⇒ DesignerPluginData
constructor
A new instance of DesignerPluginData.
Constructor Details
#initialize(project_name, widget_klassname, icon_path, whats_this) ⇒ DesignerPluginData
Returns a new instance of DesignerPluginData
137 138 139 140 141 142 143 144 |
# File 'lib/rock/widget_generator.rb', line 137 def initialize(project_name,, icon_path, whats_this ) @project_name = project_name @widget_klassname = @plugin_klassname = + "Plugin" @test_binary_name = .downcase + "Test" @icon_path = icon_path @whats_this = whats_this end |
Instance Attribute Details
#icon_path ⇒ Object (readonly)
Returns the value of attribute icon_path
134 135 136 |
# File 'lib/rock/widget_generator.rb', line 134 def icon_path @icon_path end |
#plugin_klassname ⇒ Object (readonly)
Returns the value of attribute plugin_klassname
131 132 133 |
# File 'lib/rock/widget_generator.rb', line 131 def plugin_klassname @plugin_klassname end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name
130 131 132 |
# File 'lib/rock/widget_generator.rb', line 130 def project_name @project_name end |
#test_binary_name ⇒ Object (readonly)
Returns the value of attribute test_binary_name
133 134 135 |
# File 'lib/rock/widget_generator.rb', line 133 def test_binary_name @test_binary_name end |
#whats_this ⇒ Object (readonly)
Returns the value of attribute whats_this
135 136 137 |
# File 'lib/rock/widget_generator.rb', line 135 def whats_this @whats_this end |
#widget_klassname ⇒ Object (readonly)
Returns the value of attribute widget_klassname
132 133 134 |
# File 'lib/rock/widget_generator.rb', line 132 def @widget_klassname end |
Instance Method Details
#get_binding ⇒ Object
Support templating
147 148 149 |
# File 'lib/rock/widget_generator.rb', line 147 def get_binding binding end |