Class: Flipper::UI::Action::Breadcrumb
- Inherits:
-
Object
- Object
- Flipper::UI::Action::Breadcrumb
- Defined in:
- lib/flipper/ui/action.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(text, href = nil) ⇒ Breadcrumb
constructor
A new instance of Breadcrumb.
Constructor Details
#initialize(text, href = nil) ⇒ Breadcrumb
Returns a new instance of Breadcrumb.
189 190 191 192 |
# File 'lib/flipper/ui/action.rb', line 189 def initialize(text, href = nil) @text = text @href = href end |
Instance Attribute Details
#href ⇒ Object (readonly)
Returns the value of attribute href.
187 188 189 |
# File 'lib/flipper/ui/action.rb', line 187 def href @href end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
187 188 189 |
# File 'lib/flipper/ui/action.rb', line 187 def text @text end |
Instance Method Details
#active? ⇒ Boolean
194 195 196 |
# File 'lib/flipper/ui/action.rb', line 194 def active? @href.nil? end |