Class: MasterView::TemplateSpec::CreateShellERBValues

Inherits:
Object
  • Object
show all
Defined in:
lib/masterview/template_spec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller_name, action_name) ⇒ CreateShellERBValues



227
228
229
230
231
232
# File 'lib/masterview/template_spec.rb', line 227

def initialize(controller_name, action_name)
  @controller_name = Inflector.underscore(Inflector.singularize(controller_name))
  @action_name = Inflector.underscore(Inflector.singularize(action_name))
  @controller_file_name = @controller_name
  @controller_view_dir_name = @controller_file_name
end

Instance Attribute Details

#action_nameObject (readonly)

Returns the value of attribute action_name.



226
227
228
# File 'lib/masterview/template_spec.rb', line 226

def action_name
  @action_name
end

#controller_file_nameObject (readonly)

Returns the value of attribute controller_file_name.



226
227
228
# File 'lib/masterview/template_spec.rb', line 226

def controller_file_name
  @controller_file_name
end

#controller_nameObject (readonly)

Returns the value of attribute controller_name.



226
227
228
# File 'lib/masterview/template_spec.rb', line 226

def controller_name
  @controller_name
end

#controller_view_dir_nameObject (readonly)

Returns the value of attribute controller_view_dir_name.



226
227
228
# File 'lib/masterview/template_spec.rb', line 226

def controller_view_dir_name
  @controller_view_dir_name
end

Instance Method Details

#get_bindingObject



234
235
236
# File 'lib/masterview/template_spec.rb', line 234

def get_binding
  binding
end