Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

pass in data as an arg when initializing a cell object #15

@kellyredding

Description

@kellyredding

(this is another great request from @naleksi)

Hello again!

Here's another tweak I tried to get working, but unfortunately I failed. Many tests on higher up in the hierarchy than Cell itself fails. Take a look at the test below and you see what I tried to get accomplished, ie. no need to give data within the block but immediately in the initialization.

naleksi@b36e4b7

Let me know if you think this is a good idea or could be tweaked working. I'll send you a push request.


This idea here is that you can choose to specify a cell object with data by passing the data as an arg, kinda like so:

cell(some_data) do
  # some other cell attributes
end

Currently, the only way to specify data for a cell is to use a DSL-style attribute, like so:

cell do
  data some_data
  # some other cell attributes
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions