Sha256: f61227c07c2a8c42dde38715f7ac98b97f73deaf315f08b5968aa2d34960a27b

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

module Planter
  class ::Integer
    def clean_value
      self
    end

    def has_selector?
      true
    end

    def highlight_character(default: nil)
      "(#{self})".highlight_character(default: default)
    end
  end

  class ::Float
    def clean_value
      self
    end

    def has_selector?
      true
    end

    def highlight_character(default: nil)
      "(#{self})".highlight_character(default: default)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
planter-cli-3.0.5 lib/planter/numeric.rb