class Aerogel::Admin::TabsBuilder::Tab

Attributes

block[RW]
label[RW]
options[RW]
url[RW]

Public Class Methods

new( url, options = {}, &block ) click to toggle source
# File lib/aerogel/admin/tabs_builder.rb, line 46
def initialize( url, options = {}, &block )
  self.url = url
  self.options = options
  self.label = self.options[:label] || self.url
  self.block = block
end

Public Instance Methods

human_label() click to toggle source
# File lib/aerogel/admin/tabs_builder.rb, line 53
def human_label
  if label.is_a? String
    label
  elsif label.is_a? Symbol
    I18n.t label
  else
    label.humanize
  end
end