lib/plotrb/kernel.rb
# a global space keeping track of all Data objects defined
a global space keeping track of all Data objects defined
a global space keeping track of all Data objects defined
def method_missing(method, *args, &block)
      case method.to_s
        when /^(\w)_axis$/
          if ::Plotrb::Axis::TYPES.include?($1.to_sym)
            cache_method($1, 'axis')
            self.send(method)
          else
            super
          end
        when /^(\w+)_scale$/
          if ::Plotrb::Scale::TYPES.include?($1.to_sym)
            cache_method($1, 'scale')
            self.send(method)
          else
            super
          end
        when /^(\w+)_transform$/
          if ::Plotrb::Transform::TYPES.include?($1.to_sym)
            cache_method($1, 'transform')
            self.send(method)
          else
            super
          end
        when /^(\w+)_mark$/
          if ::Plotrb::Mark::TYPES.include?($1.to_sym)
            cache_method($1, 'mark')
            self.send(method)
          else
            super
          end
        else
          super
      end
    end
def method_missing ( method , * args , & block ) case method . to_s when / ^( \w )_axis$ / if :: Plotrb :: Axis :: TYPES . include? ( $1 . to_sym ) cache_method ( $1 , 'axis' ) self . send ( method ) else super end when / ^( \w +)_scale$ / if :: Plotrb :: Scale :: TYPES . include? ( $1 . to_sym ) cache_method ( $1 , 'scale' ) self . send ( method ) else super end when / ^( \w +)_transform$ / if :: Plotrb :: Transform :: TYPES . include? ( $1 . to_sym ) cache_method ( $1 , 'transform' ) self . send ( method ) else super end when / ^( \w +)_mark$ / if :: Plotrb :: Mark :: TYPES . include? ( $1 . to_sym ) cache_method ( $1 , 'mark' ) self . send ( method ) else super end else super end end
a global space keeping track of all Data objects defined
a global space keeping track of all Data objects defined
# Initialize ::Plotrb::Axis objects # Initialize ::Plotrb::Scale objects # Initialize ::Plotrb::Transform objects # Initialize ::Plotrb::Mark objects
method
<not_specific>
args
<not_specific>
block
<not_specific>