This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class B | |
| def self.method_missing(m, *args) | |
| puts "B#{m.to_s.upcase}" | |
| end | |
| end | |
| class B | |
| def self.oosh | |
| puts 1.to_f/0 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Favorite = { | |
| client_name: "", | |
| client_id: "", | |
| user_id: "", | |
| add_or_remove: "", | |
| getID: function(params){ | |
| this.client_name = params.attr("client_name"); | |
| this.client_id = params.attr("client_id"); | |
| this.user_id = params.attr("user_id"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ActionView | |
| module Helpers | |
| class InstanceTag | |
| def to_check_box_tag(options = {}, checked_value = "1", unchecked_value = "0") | |
| options = options.stringify_keys | |
| options["type"] = "checkbox" | |
| options["value"] = checked_value | |
| if options.has_key?("checked") | |
| cv = options.delete "checked" | |
| checked = cv == true || cv == "checked" |
NewerOlder