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
Imports System.Transactions | |
Class TemporalIncursionGenerator | |
Public Property ClientID As String | |
Public Property TransactionID As String | |
Public Property UserID As String | |
Private transaction_table As New DataTable | |
Private query_command As New System.Text.StringBuilder("") | |
Private command As New MySqlCommand() |
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 Weight | |
def method_missing(method_id) | |
return nil if self.class == Weight | |
name = method_id.id2name | |
result = nil | |
if name =~ /^to_(\w+)s$/ | |
klass = eval $1.capitalize | |
result = klass.from_ounces(self.to_ounces) |
NewerOlder