Module: NfgUi::Bootstrap::Utilities::Wrappable

Overview

Allows component to swap out the main component wrapping element (ex. :div vs. :span) Pass in :as – only unique logic at the moment is converting :link to :a for tag generation

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#asObject

Returns the value of attribute as.



10
11
12
# File 'lib/nfg_ui/bootstrap/utilities/wrappable.rb', line 10

def as
  @as
end

Instance Method Details

#utility_initializeObject



12
13
14
15
# File 'lib/nfg_ui/bootstrap/utilities/wrappable.rb', line 12

def utility_initialize
  self.as = options.fetch(:as, automatic_as)
  super
end