Class: VirtualKeywords::ObjectAndKeyword

Inherits:
Struct
  • Object
show all
Defined in:
lib/virtual_keywords/rewritten_keywords.rb

Overview

Simple data object holding an object and a Ruby keyword (as a symbol)

Instance Attribute Summary collapse

Instance Attribute Details

#keywordObject

Returns the value of attribute keyword

Returns:

  • (Object)

    the current value of keyword



4
5
6
# File 'lib/virtual_keywords/rewritten_keywords.rb', line 4

def keyword
  @keyword
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



4
5
6
# File 'lib/virtual_keywords/rewritten_keywords.rb', line 4

def object
  @object
end