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



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

def _1
  @_1
end

#_2Object (readonly)

Returns the value of attribute _2

Returns:

  • (Object)

    the current value of _2



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

def _2
  @_2
end

Instance Method Details

#to_sObject



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

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