Class: MasterView::TemplateSpec::CreateShellERBValues
- Inherits:
-
Object
- Object
- MasterView::TemplateSpec::CreateShellERBValues
- Defined in:
- lib/masterview/template_spec.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
readonly
Returns the value of attribute action_name.
-
#controller_file_name ⇒ Object
readonly
Returns the value of attribute controller_file_name.
-
#controller_name ⇒ Object
readonly
Returns the value of attribute controller_name.
-
#controller_view_dir_name ⇒ Object
readonly
Returns the value of attribute controller_view_dir_name.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(controller_name, action_name) ⇒ CreateShellERBValues
constructor
A new instance of CreateShellERBValues.
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_name ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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_binding ⇒ Object
234 235 236 |
# File 'lib/masterview/template_spec.rb', line 234 def get_binding binding end |