Sha256: 7f787a89117f19f26e5da961448c9503e6daa6e7ba4f215078cbff055d02fde6

Contents?: true

Size: 235 Bytes

Versions: 19

Compression:

Stored size: 235 Bytes

Contents

module Ruby2JS
  class Converter

    # (int 1)
    # (float 1.1)
    # (str "1"))

    handle :int, :float, :str do |value|
      put value.inspect
    end

    handle :octal do |value|
      put '0' + value.to_s(8)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ruby2js-3.5.3 lib/ruby2js/converter/literal.rb
ruby2js-3.5.2 lib/ruby2js/converter/literal.rb
ruby2js-3.5.1 lib/ruby2js/converter/literal.rb
ruby2js-3.5.0 lib/ruby2js/converter/literal.rb
ruby2js-3.4.0 lib/ruby2js/converter/literal.rb
ruby2js-3.3.6 lib/ruby2js/converter/literal.rb
ruby2js-3.3.5 lib/ruby2js/converter/literal.rb
ruby2js-3.3.4 lib/ruby2js/converter/literal.rb
ruby2js-3.3.3 lib/ruby2js/converter/literal.rb
ruby2js-3.3.2 lib/ruby2js/converter/literal.rb
ruby2js-3.3.1 lib/ruby2js/converter/literal.rb
ruby2js-3.3.0 lib/ruby2js/converter/literal.rb
ruby2js-3.2.0 lib/ruby2js/converter/literal.rb
ruby2js-3.1.2 lib/ruby2js/converter/literal.rb
ruby2js-3.1.1 lib/ruby2js/converter/literal.rb
ruby2js-3.1.0 lib/ruby2js/converter/literal.rb
ruby2js-3.0.15 lib/ruby2js/converter/literal.rb
ruby2js-3.0.14 lib/ruby2js/converter/literal.rb
ruby2js-3.0.13 lib/ruby2js/converter/literal.rb