Class: PluginGen::SpecObject

Inherits:
Retrospec::Plugins::V1::ContextObject
  • Object
show all
Defined in:
lib/retrospec/plugins/v1/plugin/spec_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#instanceObject (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_pathObject (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_nameObject (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_nameObject (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