class BSON::CodeWithScope

def initialize(javascript = "", scope = {})

Other tags:
    Since: - 2.0.0

Parameters:
  • scope (Hash) -- The variable scope.
  • javascript (String) -- The javascript code.

Other tags:
    Example: Instantiate the code with scope. -
def initialize(javascript = "", scope = {})
  @javascript = javascript
  @scope = scope
end