class Fumoffu::Controller
Attributes
action_name[RW]
controller_name[R]
Public Class Methods
new()
click to toggle source
# File lib/fumoffu/controller.rb, line 6 def initialize @controller_name = extract_controller_name end
Public Instance Methods
extract_controller_name()
click to toggle source
# File lib/fumoffu/controller.rb, line 10 def extract_controller_name name = self.class.to_s name.scan(/^\w+Controller$/).first.downcase end