Class: Roby::StateLastValueField

Inherits:
OpenStruct show all
Defined in:
lib/roby/state/state_model.rb

Overview

Representation of the last known state

Constant Summary

Constants inherited from OpenStruct

OpenStruct::FORBIDDEN_NAMES, OpenStruct::FORBIDDEN_NAMES_RX, OpenStruct::NOT_OVERRIDABLE, OpenStruct::NOT_OVERRIDABLE_RX

Instance Attribute Summary

Attributes inherited from OpenStruct

#__parent_name, #__parent_struct, #model

Instance Method Summary collapse

Methods inherited from OpenStruct

#__get, #__merge, #__parent, #__root, #__root?, #_dump, _load, #alias, #alias?, #attach, #attach_child, #attach_model, #attach_to, #attached?, #clear, #clear_model, #create_model, #create_subfield, #delete, #detached!, #each_member, #empty?, #filter, #freeze, #get, #global_filter, #has_method?, #initialize, #link_to, #member?, #new_model, #on_change, #path, #pretty_print, #respond_to_missing?, #set, #stable!, #stable?, #to_hash, #update, #updated

Constructor Details

This class inherits a constructor from Roby::OpenStruct

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



78
79
80
81
82
83
84
# File 'lib/roby/state/state_model.rb', line 78

def method_missing(name, *args)
    if name =~ /=$/
        raise ArgumentError, "cannot write to a StateLastValueField object"
    end

    super
end