Class: Extension

Inherits:
Struct
  • Object
show all
Defined in:
app/models/admin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#extObject

Returns the value of attribute ext

Returns:

  • (Object)

    the current value of ext



149
150
151
# File 'app/models/admin.rb', line 149

def ext
  @ext
end

Instance Method Details

#constantObject



162
163
164
# File 'app/models/admin.rb', line 162

def constant
  self.ext
end

#instantiateObject



158
159
160
# File 'app/models/admin.rb', line 158

def instantiate
  self.ext.new
end

#titleObject



154
155
156
# File 'app/models/admin.rb', line 154

def title
  self.ext.name.titleize
end

#view_nameObject



150
151
152
# File 'app/models/admin.rb', line 150

def view_name
  self.ext.name.underscore
end