Class: Rock::DesignerPluginData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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,widget_klassname, icon_path, whats_this )
    @project_name = project_name
    @widget_klassname = widget_klassname
    @plugin_klassname = widget_klassname + "Plugin"
    @test_binary_name = widget_klassname.downcase + "Test"
    @icon_path = icon_path
    @whats_this = whats_this
end

Instance Attribute Details

#icon_pathObject (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_klassnameObject (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_nameObject (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_nameObject (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_thisObject (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_klassnameObject (readonly)

Returns the value of attribute widget_klassname



132
133
134
# File 'lib/rock/widget_generator.rb', line 132

def widget_klassname
  @widget_klassname
end

Instance Method Details

#get_bindingObject

Support templating



147
148
149
# File 'lib/rock/widget_generator.rb', line 147

def get_binding
    binding
end