Skip to content

Commit

Permalink
provide empty defaults for the state and declaration methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Hellerstein committed Sep 6, 2010
1 parent 00f5777 commit 4ae7dee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 9 additions & 1 deletion lib/bud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,20 @@ def initialize(ip, port)
#safe_rewrite
end
end

########### give empty defaults for these
def state
end
def declaration
end

# helper to define instance methods
def singleton_class
class << self; self; end
end

########### metaprogramming support for ruby and for rule rewriting
# helper to define instance methods

def safe_rewrite
begin
defn = meta_rewrite
Expand Down
3 changes: 0 additions & 3 deletions test/tc_inheritance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ def state
table :tbl, ['k'], ['v']
end

def declaration
end

declare
def bundle
tbl << [2, 'a']
Expand Down

0 comments on commit 4ae7dee

Please sign in to comment.