class Rstruct::Field

Attributes

args[R]
block[R]
name[R]
typ[R]

Public Class Methods

new(name, typ, args, block) click to toggle source
# File lib/rstruct/field.rb, line 5
def initialize(name, typ, args, block)
  @name=name
  @typ=typ
  @args=args
  @block=block
end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/rstruct/field.rb, line 16
def method_missing(name, *args, &block)
  @typ.__send__(name, *args, &block)
end
respond_to?(arg) click to toggle source
Calls superclass method
# File lib/rstruct/field.rb, line 12
def respond_to?(arg)
  super(arg) || @typ.respond_to?(arg)
end