Class: Jade::Tuple::Tuple2

Inherits:
Data
  • Object
show all
Defined in:
lib/jade/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_1Object (readonly)

Returns the value of attribute _1

Returns:

  • (Object)

    the current value of _1



10
11
12
# File 'lib/jade/runtime.rb', line 10

def _1
  @_1
end

#_2Object (readonly)

Returns the value of attribute _2

Returns:

  • (Object)

    the current value of _2



10
11
12
# File 'lib/jade/runtime.rb', line 10

def _2
  @_2
end

Instance Method Details

#to_sObject



11
# File 'lib/jade/runtime.rb', line 11

def to_s = "(#{[_1, _2].map(&:to_s).join(', ')})"