Top "Initializer" questions

Initializers are called to create a new instance of a particular type.

What is a designated initializer in C?

I know this might be a basic question. I have an assignment that requires me to understand what a Designated …

c struct union initializer designated-initializer
Creating an array of two-dimensional arrays in C#

I simply want to create an array of two dimensional arrays to store coordinate points. So I want an array …

c# arrays multidimensional-array initialization initializer
How to satisfy a protocol which includes an initializer?

I defined a simple class: class MyClass { var name:String? required init() { println("init") } } I can add a new initializer …

swift initialization initializer
Swift + Realm newbie: Problems with a simple Realm object and its initializers

I've been a long time Objective-C developer and heard about Realm some weeks ago. On the other hand I've always …

ios xcode swift realm initializer
Static Initializers vs Instance Initializers vs Constructors

I am studying for an exam about Java. While I was studying, I have encountered syntaxes in java which are …

java constructor static initializer
Rails how to create an initializer inside a gem

I am trying to build a gem in Rails 3 and inside it i am trying to pass an initializer: Credentials.…

ruby-on-rails-3 gem initializer
static initializers in objective C

How do I make static initializers in objective-c (if I have the term correct). Basically I want to do something …

objective-c static initializer
How do you test your Config/Initializer Scripts with Rspec in Rails?

So I was searching online for a solution, but there seems to be scarce information about testing initializers created in …

ruby-on-rails rspec config rspec-rails initializer
How often do initializers run in Rails?

Do the initializers in a Rails app run each time someone visits the site? For example, if my server is …

ruby-on-rails initializer
Does Rails run initializers for rake task?

Are the scripts from config/initializers executed when I run rake task?

ruby-on-rails initializer rake-task