Class: Cakeproto::MaybeInt

Inherits:
Object
  • Object
show all
Defined in:
lib/bucket_cake/proto_ext/maybe_int.rb

Instance Method Summary collapse

Instance Method Details

#has_value?Boolean

For backwards-compatibility and RSpec matchers.

Returns:

  • (Boolean)


9
10
11
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 9

def has_value?
  has_value
end

#value_if_presentObject



4
5
6
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 4

def value_if_present
  value if has_value?
end