Skip to content

Hash syntax #1

@jamonholmgren

Description

@jamonholmgren

Would you consider a pull request that allows an alternate hash syntax?

class MainMenu
  extend DrinkMenu::MenuBuilder

  def menu_data
    {
      app: { title: "App Name", items: [
        { title: 'Quit', key: 'q' }
      ]},
      file: { title: "File", items: [
        { title: "Open", key: 'o' },
        { title: "New" },
        ___,
        { title: "Close", key: "w" }
      ]}
    }
  end 
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions