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



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

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

#inspectObject



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

def inspect; @str.inspect; end

#to_sObject



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

def to_s; @str; end