Class: Snails::Environment
Instance Method Summary collapse
- #<=>(str) ⇒ Object
-
#initialize(str) ⇒ Environment
constructor
A new instance of Environment.
- #inspect ⇒ Object
- #to_s ⇒ Object
- #to_sym ⇒ Object
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 |
#inspect ⇒ Object
12 |
# File 'lib/snails.rb', line 12 def inspect; @str.inspect; end |
#to_s ⇒ Object
9 |
# File 'lib/snails.rb', line 9 def to_s; @str; end |
#to_sym ⇒ Object
10 |
# File 'lib/snails.rb', line 10 def to_sym; @str.to_sym; end |