Class: Snails::Environment

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/snails.rb

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Environment

Returns a new instance of Environment.



8
# File 'lib/snails.rb', line 8

def initialize(str); @str = str.to_s.freeze; end

Instance Method Details

#<=>(str) ⇒ Object



11
# File 'lib/snails.rb', line 11

def <=>(str); @str <=> str.to_s; end

#inspectObject



12
# File 'lib/snails.rb', line 12

def inspect; @str.inspect; end

#to_sObject



9
# File 'lib/snails.rb', line 9

def to_s; @str; end

#to_symObject



10
# File 'lib/snails.rb', line 10

def to_sym; @str.to_sym; end