Class: PluginGen::SpecObject
- Inherits:
-
Retrospec::Plugins::V1::ContextObject
- Object
- Retrospec::Plugins::V1::ContextObject
- PluginGen::SpecObject
- Defined in:
- lib/retrospec/plugins/v1/plugin/spec_object.rb
Instance Attribute Summary collapse
-
#capitalized_plugin_name ⇒ Object
readonly
Returns the value of attribute capitalized_plugin_name.
-
#instance ⇒ Object
readonly
Returns the value of attribute instance.
-
#module_path ⇒ Object
readonly
Returns the value of attribute module_path.
-
#plugin_name ⇒ Object
readonly
the name of the plugin you wish to create, automatically is inherited from the basename of the module_path.
-
#snakecase_plugin_name ⇒ Object
readonly
Returns the value of attribute snakecase_plugin_name.
Instance Method Summary collapse
-
#initialize(mod_path, data) ⇒ SpecObject
constructor
A new instance of SpecObject.
Constructor Details
#initialize(mod_path, data) ⇒ SpecObject
Returns a new instance of SpecObject.
8 9 10 11 |
# File 'lib/retrospec/plugins/v1/plugin/spec_object.rb', line 8 def initialize(mod_path, data) @instance = data @module_path = mod_path end |
Instance Attribute Details
#capitalized_plugin_name ⇒ Object (readonly)
Returns the value of attribute capitalized_plugin_name.
6 7 8 |
# File 'lib/retrospec/plugins/v1/plugin/spec_object.rb', line 6 def capitalized_plugin_name @capitalized_plugin_name end |
#instance ⇒ Object (readonly)
Returns the value of attribute instance.
6 7 8 |
# File 'lib/retrospec/plugins/v1/plugin/spec_object.rb', line 6 def instance @instance end |
#module_path ⇒ Object (readonly)
Returns the value of attribute module_path.
6 7 8 |
# File 'lib/retrospec/plugins/v1/plugin/spec_object.rb', line 6 def module_path @module_path end |
#plugin_name ⇒ Object (readonly)
the name of the plugin you wish to create, automatically is inherited from the basename of the module_path
22 23 24 |
# File 'lib/retrospec/plugins/v1/plugin/spec_object.rb', line 22 def plugin_name @plugin_name end |
#snakecase_plugin_name ⇒ Object (readonly)
Returns the value of attribute snakecase_plugin_name.
6 7 8 |
# File 'lib/retrospec/plugins/v1/plugin/spec_object.rb', line 6 def snakecase_plugin_name @snakecase_plugin_name end |