Module: Opal::SourceMap::Map
Instance Method Summary collapse
Instance Method Details
#as_json ⇒ Object
15 16 17 |
# File 'opal/lib/opal/source_map/map.rb', line 15 def as_json(*) to_h end |
#to_data_uri_comment ⇒ Object
23 24 25 |
# File 'opal/lib/opal/source_map/map.rb', line 23 def to_data_uri_comment "//# sourceMappingURL=data:application/json;base64,#{Base64.encode64(to_json).delete("\n")}" end |
#to_h ⇒ Object
7 8 9 |
# File 'opal/lib/opal/source_map/map.rb', line 7 def to_h map end |
#to_json ⇒ Object
11 12 13 |
# File 'opal/lib/opal/source_map/map.rb', line 11 def to_json map.to_json end |
#to_s ⇒ Object
19 20 21 |
# File 'opal/lib/opal/source_map/map.rb', line 19 def to_s map.to_s end |