Class: Cakeproto::MaybeInt
- Inherits:
-
Object
- Object
- Cakeproto::MaybeInt
- Defined in:
- lib/bucket_cake/proto_ext/maybe_int.rb
Instance Method Summary collapse
-
#has_value? ⇒ Boolean
For backwards-compatibility and RSpec matchers.
- #value_if_present ⇒ Object
Instance Method Details
#has_value? ⇒ Boolean
For backwards-compatibility and RSpec matchers.
9 10 11 |
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 9 def has_value? has_value end |
#value_if_present ⇒ Object
4 5 6 |
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 4 def value_if_present value if has_value? end |