class Beefcake::Message::Field

Public Instance Methods

<=>(o) click to toggle source
# File lib/beefcake.rb, line 33
def <=>(o)
  fn <=> o.fn
end
is_protobuf?() click to toggle source
# File lib/beefcake.rb, line 45
def is_protobuf?
  type.is_a?(Class) and type.include?(Beefcake::Message)
end
matches_type?(obj) click to toggle source
# File lib/beefcake.rb, line 41
def matches_type?(obj)
  obj.is_a? type
end
optional?() click to toggle source
# File lib/beefcake.rb, line 51
def optional? ; rule == :optional end
repeated?() click to toggle source
# File lib/beefcake.rb, line 50
def repeated? ; rule == :repeated end
required?() click to toggle source
# File lib/beefcake.rb, line 49
def required? ; rule == :required end
same_type?(obj) click to toggle source
# File lib/beefcake.rb, line 37
def same_type?(obj)
  type == obj
end