Class: RubyUIAdmin::Menu::LinkItem

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_ui_admin/menu/builder.rb

Overview

A leaf linking to an arbitrary path.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



12
13
14
# File 'lib/ruby_ui_admin/menu/builder.rb', line 12

def label
  @label
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



12
13
14
# File 'lib/ruby_ui_admin/menu/builder.rb', line 12

def path
  @path
end

Instance Method Details

#typeObject



13
# File 'lib/ruby_ui_admin/menu/builder.rb', line 13

def type = :link