Class: Pageflow::HelpEntry
- Inherits:
-
Object
- Object
- Pageflow::HelpEntry
- Defined in:
- lib/pageflow/help_entry.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, options) ⇒ HelpEntry
constructor
A new instance of HelpEntry.
- #priority ⇒ Object
- #translation_key ⇒ Object
Constructor Details
#initialize(name, options) ⇒ HelpEntry
Returns a new instance of HelpEntry.
5 6 7 8 9 |
# File 'lib/pageflow/help_entry.rb', line 5 def initialize(name, ) @name = name @options = @children = [] end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
3 4 5 |
# File 'lib/pageflow/help_entry.rb', line 3 def children @children end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/pageflow/help_entry.rb', line 3 def name @name end |
Instance Method Details
#priority ⇒ Object
15 16 17 |
# File 'lib/pageflow/help_entry.rb', line 15 def priority @options.fetch(:priority, 10) end |
#translation_key ⇒ Object
11 12 13 |
# File 'lib/pageflow/help_entry.rb', line 11 def translation_key name end |