Module: CanvasApi
- Included in:
- Render
- Defined in:
- lib/canvas_api.rb,
lib/canvas_api/render.rb,
lib/canvas_api/builder.rb,
lib/canvas_api/helpers.rb,
lib/canvas_api/go_helpers.rb,
lib/canvas_api/js_helpers.rb,
lib/canvas_api/ruby_helpers.rb,
lib/canvas_api/js_graphql_helpers.rb,
lib/canvas_api/rb_graphql_helpers.rb
Defined Under Namespace
Modules: GoHelpers, GraphQLHelpers, JsHelpers, RubyHelpers Classes: Builder, Render
Instance Method Summary collapse
Instance Method Details
#nested_arg(str) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/canvas_api/helpers.rb', line 2 def nested_arg(str) # TODO/HACK we are replacing values from the string here to get things to work for now. # However, removing these symbols means that the methods that use the arguments # generated herein will have bugs and be unusable. str.gsub("[", "_"). gsub("]", ""). gsub("*", "star"). gsub("<", "_"). gsub(">", "_"). gsub("`", ""). gsub("https://canvas.instructure.com/lti/", ""). gsub("https://www.instructure.com/", ""). gsub("https://purl.imsglobal.org/spec/lti/claim/", ""). gsub(".", "") end |