Skip to content

Instantly share code, notes, and snippets.

@nuclearsandwich
Created October 15, 2012 23:01
Show Gist options
  • Save nuclearsandwich/3896210 to your computer and use it in GitHub Desktop.
Save nuclearsandwich/3896210 to your computer and use it in GitHub Desktop.

Mirah Questions

How do I do build class constants in Mirah? Will the compiler optimize them to values or do they stay methods

class TestConstants {
  public static string FOO = "foo";
}
class TestConstants
  def self.FOO
    "foo"
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment