File: float.rb

package info (click to toggle)
ruby-icalendar 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 492 kB
  • sloc: ruby: 2,868; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Icalendar
  module Values

    class Float < Value

      def initialize(value, params = {})
        super value.to_f, params
      end

      def value_ical
        value.to_s
      end

    end

  end
end