Sha256: 56bc585981d7ec01ac76952ff89b2cc7c0ea7d75197850d66592a2398f3d254d

Contents?: true

Size: 288 Bytes

Versions: 20

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

# Essentials method here
class Atome
  private

  def get(element)
    @atome[element]
  end

  def value
    @atome
  end

  def to_s
    if @value
      @result = @value.to_s
    elsif @atome
      @result = @atome.to_s
    end
    @result.to_s
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 lib/atome/kernel/essentials.rb
atome-0.5.4.1.7 lib/atome/kernel/essentials.rb
atome-0.5.4.1.3 lib/atome/kernel/essentials.rb
atome-0.5.4.1.2 lib/atome/kernel/essentials.rb
atome-0.5.4.1.1 lib/atome/kernel/essentials.rb
atome-0.5.4.1.0 lib/atome/kernel/essentials.rb
atome-0.5.4.0.9 lib/atome/kernel/essentials.rb
atome-0.5.3.8.8 lib/atome/kernel/essentials.rb
atome-0.5.3.8.1 lib/atome/kernel/essentials.rb
atome-0.5.3.8.0 lib/atome/kernel/essentials.rb
atome-0.5.3.7.8 lib/atome/kernel/essentials.rb
atome-0.5.3.7.3 lib/atome/kernel/essentials.rb
atome-0.5.3.7.2 lib/atome/kernel/essentials.rb
atome-0.5.3.4 lib/atome/kernel/essentials.rb
atome-0.5.3.2 lib/atome/kernel/essentials.rb
atome-0.5.2.8 lib/atome/kernel/essentials.rb
atome-0.5.2.7 lib/atome/kernel/essentials.rb
atome-0.5.2.5 lib/atome/kernel/essentials.rb
atome-0.5.1.9 lib/atome/kernel/essentials.rb
atome-0.5.1.4 lib/atome/kernel/essentials.rb