Skip to content
This repository has been 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

Open
kellyredding opened this issue Nov 18, 2011 · 0 comments
Open

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

kellyredding opened this issue Nov 18, 2011 · 0 comments

Comments

@kellyredding
Copy link
Member

(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
This was referenced Mar 15, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant