Class: Flipper::UI::Action::Breadcrumb

Inherits:
Object
  • Object
show all
Defined in:
lib/flipper/ui/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, href = nil) ⇒ Breadcrumb

Returns a new instance of Breadcrumb.



150
151
152
153
# File 'lib/flipper/ui/action.rb', line 150

def initialize(text, href = nil)
  @text = text
  @href = href
end

Instance Attribute Details

#hrefObject (readonly)

Returns the value of attribute href.



148
149
150
# File 'lib/flipper/ui/action.rb', line 148

def href
  @href
end

#textObject (readonly)

Returns the value of attribute text.



148
149
150
# File 'lib/flipper/ui/action.rb', line 148

def text
  @text
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


155
156
157
# File 'lib/flipper/ui/action.rb', line 155

def active?
  @href.nil?
end