Class: StreetFighter::Either
- Inherits:
-
Object
- Object
- StreetFighter::Either
- Defined in:
- lib/street_fighter/either.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left_value, right_value) ⇒ Either
constructor
A new instance of Either.
Constructor Details
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
3 4 5 |
# File 'lib/street_fighter/either.rb', line 3 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
3 4 5 |
# File 'lib/street_fighter/either.rb', line 3 def right @right end |